![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[IBM i]](../images/iseries.gif)
使用响应文件安装修订包
您可以通过 IBM® Installation Manager 响应文件,使用可用的修订包来更新产品。修订包中包含捆绑的服务,用于将产品升级到新的产品级别。
开始之前
提示: 作为此过程的替代方法,您可在响应文件或命令行中使用 Installation Manager 的 updateAll 命令来搜索并更新所有已安装的软件包。仅当您完全了解目标存储库中包含了哪些修订时才使用此命令。如果创建并指向的一组定制存储库仅包含要安装的特定修订,那么您可以放心地使用此命令。如果您启用服务存储库搜索,或者直接从其他基于 Web 的实时存储库安装修订,那么您可能不想选择此选项,以便能够只选择您想要安装的修订(在命令行上使用 install 命令的 -installFixes 选项进行选择,或在响应文件中使用 installFixes 属性进行选择)。
过程
示例
以下示例显示用于在 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'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.nl' value='en, fr, it, zh, ro, ru, zh_TW, de, ja, pl, es, cs, hu, ko, pt_BR'/>
</profile>
<install modify='false'>
<offering profile='IBM WebSphere Application Server V9.0' id='com.ibm.websphere.ND.v90'
version='9.0.0.20161025_2108' features='core.feature'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='C:\Program Files\IBM\IMShared'/>
<preference name='com.ibm.cic.common.core.preferences.connectTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.readTimeout' value='30'/>
<preference name='com.ibm.cic.common.core.preferences.downloadAutoRetryCount' value='0'/>
<preference name='offering.service.repositories.areUsed' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.ssl.nonsecureMode' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.http.disablePreemptiveAuthentication' value='false'/>
<preference name='http.ntlm.auth.kind' value='NTLM'/>
<preference name='http.ntlm.auth.enableIntegrated.win32' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.preserveDownloadedArtifacts' value='true'/>
<preference name='com.ibm.cic.common.core.preferences.keepFetchedFiles' value='false'/>
<preference name='PassportAdvantageIsEnabled' value='false'/>
<preference name='com.ibm.cic.common.core.preferences.searchForUpdates' value='false'/>
</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.x_0200)。
对存储库运行以下命令时,可以看到产品版本通过下划线附加到产品标识的末尾:imcl listAvailablePackages -repositories source_repository
- 安装临时修订
要指示您想要随产品一起安装哪些临时修订,请随 -installFixes 自变量一起指定 none、recommended 或 all。