![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
使用响应文件卸载修订包
您可以使用 Installation Manager 响应文件将本产品回滚到较早版本。
开始之前
在回滚过程中,Installation Manager 必须访问较早版本的软件包中的文件。缺省情况下,在您安装软件包时,这些文件会存储在您的计算机上。如果已更改缺省设置或删除已保存的文件,那么 Installation Manager 需要访问用于安装较早版本的存储库。
有关使用 Installation Manager 的更多信息,请阅读 IBM® Installation Manager 文档。
过程
示例
以下样本响应文件显示在 Windows 操作系统中,如何将 WebSphere Application Server Network Deployment 产品回滚到较早的版本。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<server>
<repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.ND.v90'/>
</server>
<profile id='IBM WebSphere Application Server V9.0' installLocation='C:\Program Files\IBM\WebSphere\AppServer'>
<data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer'/>
</profile>
<rollback>
<offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90' version='9.0.0.20161025_2108'/>
</rollback>
</agent-input>
- 查找概要文件标识
- 要查找概要文件标识(<profile . . . id='profile_ID' . . . .> 和 <offering . . . profile='profile_ID' . . . .>),请从安装了 Installation Manager 的目录的 eclipse/tools 子目录中运行以下命令:概要文件名与软件包组名相同。
imcl listInstallationDirectories -verbose
- 回滚产品及可选功能部件
要查找安装的产品标识 (<offering . . . id='offering_ID' . . . .>),请从 app_server_root/bin 目录中运行 historyInfo 或 genHistoryReport 命令。
回滚产品时,响应文件必须包含在先前产品安装中使用的功能部件。如果您不将这些功能部件添加至响应文件,那么 Installation Manager 会将其除去。
下表显示了产品标识、每个产品的可选功能部件和缺省功能部件:表 1. 产品标识和可选功能部件 产品标识 可选功能部件标识 缺省功能部件 WebSphere Application Server Network Deployment com.ibm.websphere.ND.v90
- core.feature: WebSphere Application Server必须指定此功能部件才能指定以下可选子功能部件:
- samples:样本应用程序
- thinclient:独立瘦客户机和资源适配器
- embeddablecontainer:可嵌入 EJB 容器
- ejbdeploy:用于 EJB 3.0 以前的模块的 EJBDeploy 工具
注: 以后,无法使用 Installation Manager 的修改、更新或回滚功能来添加或除去 core.feature。只能添加或除去子功能部件。- core.feature
- thinclient
- embeddablecontainer
- ejbdeploy
Application Client for WebSphere Application Server com.ibm.websphere.APPCLIENT.v90
- samples:样本
- standalonethinclient.resourceadapter.runtime:独立瘦客户机运行时
- standalonethinclient.resourceadapter.samples:独立瘦客户机样本
- embeddablecontainer:可嵌入 EJB 容器
embeddablecontainer DMZ Secure Proxy Server for IBM WebSphere Application Server com.ibm.websphere.NDDMZ.v90
- core.feature: DMZ Secure Proxy Server for IBM WebSphere Application Server必须指定此功能部件才能指定以下可选子功能部件:
- thinclient:独立瘦客户机和资源适配器
无缺省功能部件 Web 服务器插件 com.ibm.websphere.PLG.v90
无可选功能部件 不适用 WebSphere Customization Toolbox com.ibm.websphere.WCT.v90
- zpmt:Profile Management Tool(仅限于 z/OS)
- zmmt:z/OS 迁移管理工具
- pct:Web 服务器插件配置工具
缺省情况下,将安装所有可选功能部件
- core.feature: WebSphere Application Server
- 指定产品版本
offering_version 是要回滚到的特定产品版本,可以选择性地使用下划线将其附加到产品标识,例如 9.0.0.20160503_0200。
对存储库运行以下命令时,可以看到产品版本通过下划线附加到产品标识的末尾:imcl listAvailablePackages -repositories source_repository