使用响应文件将 Liberty 从分布式操作系统卸载

您可以使用 Installation Manager 响应文件来卸载 WebSphere® Application Server Liberty

开始之前

可选: 在其中一个系统上将 Installation Manager 和产品安装到临时安装注册表或将它们的安装记录到临时安装注册表中,这样您可以使用此临时注册表来记录卸载,而无需使用在其中安装 Installation Manager 的标准注册表。

关于此任务

通过 Installation Manager,可以使用响应文件以各种方式卸载产品。您可以按以下过程所述使用 GUI 记录响应文件,也可以手动生成或采用示例并进行修改来生成新的响应文件。

过程

  1. 停止 WebSphere Application Server Liberty 安装版本上的所有服务器和应用程序。
  2. 可选: 记录用于卸载产品的响应文件:在您的其中一个系统上,执行下列操作以记录将卸载产品的响应文件:
    1. 在命令行中,切换到 Installation Manager 的安装目录中的 eclipse 子目录。
    2. 使用 -record 选项从命令行启动 Installation Manager。
      例如:
      • For Windows platforms 管理员或非管理员:
        IBMIM.exe -skipInstall "C:\temp\imRegistry" 
                -record C:\temp\uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms管理员:
        ./IBMIM -skipInstall /var/temp/imRegistry 
          -record /var/temp/uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms非管理员:
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
          -record user_home/var/temp/uninstall_response_file.xml
      提示: 如果您选择将 -skipInstall 参数与创建的临时安装注册表(在您开始之前中描述了该创建过程)配合使用,那么 Installation Manager 在记录响应文件时会使用该临时安装注册表。一定要注意,在指定了 -skipInstall 参数时,不会安装或卸载任何产品软件包。您在 Installation Manager 中执行的所有操作仅更新所指定的临时注册表中存储的安装数据。在生成响应文件后,可以使用响应文件来卸载产品,以移除产品文件并更新标准安装注册表。

      不应在 Installation Manager 使用的实际代理程序数据位置上使用 -skipInstall 操作。此操作不受支持。请使用空白的可写位置,并对以后的记录会话复用该位置。

      有关更多信息,请参阅 IBM® Installation Manager 产品文档

    3. 单击卸载
    4. 卸载软件包窗口中,选择要卸载的 Liberty 软件包,然后单击下一步
    5. 查看摘要信息。
    6. 单击卸载
      • 如果卸载成功,那么程序将显示一则指示卸载成功的消息。
      • 如果卸载不成功,请单击查看日志以对问题进行故障诊断。
    7. 单击完成
    8. 单击文件 > 退出以关闭 Installation Manager。
  3. 使用响应文件来卸载产品:从要卸载产品的每个系统上的命令行,切换到 Installation Manager 的安装目录中的 eclipse/tools 子目录,然后使用创建的响应文件来卸载产品。
    例如:
    • For Windows platforms 管理员或非管理员:
      imcl.exe 
              input C:\temp\uninstall_response_file.xml 
              -log C:\temp\uninstall_log.xml
    • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms管理员:
      ./imcl
        input /var/temp/uninstall_response_file.xml 
        -log /var/temp/uninstall_log.xml
    • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms非管理员:
      ./imcl
        input user_home/var/temp/uninstall_response_file.xml 
        -log user_home/var/temp/uninstall_log.xml

    有关更多信息,请访问 IBM Installation Manager 产品文档

  4. 可选: 列出所有已安装的软件包以验证卸载。
    For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms
    ./imcl listInstalledPackages
    For Windows platforms
    imcl listInstalledPackages
  5. 可选: 卸载 IBM Installation Manager。
    要点: 您必须先卸载 IBM Installation Manager 安装的所有软件包,然后才能卸载 Installation Manager。

    有关使用卸载脚本来执行此过程的信息,请参阅 IBM Installation Manager 产品文档

For Windows platforms

示例

下面举例说明了用于卸载产品的响应文件。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean='true' temporary='true'>
<uninstall modify='false'>
<offering id='com.ibm.websphere.liberty.BASE' 
  profile='WebSphere Liberty'/>
</uninstall>
<profile id='WebSphere Liberty' 
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>
提示: 卸载 WebSphere Application Server Liberty 软件包时,必须卸载同一软件包组下所有作为 WebSphere Application Server Liberty 软件包的扩展的软件包。使用 Installation Manager 的 IBM SDK, Java™ Technology Edition V8.0 for WebSphere Liberty 就是这样的扩展。要卸载整个软件包组,只需将 <offering ../> 节中的 id 属性(先前示例中的 id='com.ibm.websphere.liberty.BASE')从响应文件中移除。然后,Installation Manager 将卸载该软件包组下的所有软件包。

用于指示主题类型的图标 任务主题

文件名:twlp_ins_uninstallation_dist_silent.html