使用 Installation Manager 响应文件来将 Web 2.0 and Mobile Toolkit 更新到较高版本。
开始之前
有关 WebSphere® Application Server 的升级信息,请与 IBM® 软件支持中心联系。可从 IBM 软件支持中心和 Fix Central 获得最新信息。
提示: 作为本文中所述过程的备选方法,Installation Manager 使您可在响应文件中或在命令行上使用 updateAll 命令来搜索和更新所有已安装的软件包。仅当您对目标存储库中包含的修订具有完全控制权时,才应使用此命令。如果您创建仅包含要安装的特定修订的一组定制存储库,并指向这些存储库,那么您应该能够自信地使用此命令。如果您启用搜索服务存储库,或直接从其他基于 Web 的活动存储库安装修订,那么可能不希望选择此选项,这样您就可以通过在命令行上将 -installFixes 选项与 install 命令结合使用或在响应文件中使用 installFixes 属性,从而仅选择要安装的修订。
应用 Web 2.0 and Mobile Toolkit 更新的最低存储库要求:Installation Manager 必须对以下存储库具有访问权:
- 系统上安装的 Web 2.0 and Mobile Toolkit 当前级别的存储库
- 更新存储库,即包含 Web 2.0 and Mobile Toolkit 的更新的存储库
请参阅修订包随附的自述文件文档,以获取有关安装更新的更多信息。
过程
- 要获取为 Web 2.0 and Mobile Toolkit 提供的临时修订和修订包的列表以及每个修订的特定信息,请执行以下操作。
- 转至 Fix Central。
- 选择 WebSphere 作为产品组。
- 选择 WebSphere Application Server Web 2.0 and Mobile Toolkit 作为产品。
- 选择要更新的产品的版本。
- 选择您的操作系统作为平台,然后单击继续。
- 选择浏览修订,然后单击继续。
- 单击每个修订下的更多信息以查看有关该修订的信息。
- 建议:列出要安装的修订的名称。
- 通过以下某个过程来使用修订包更新 Web 2.0 and Mobile Toolkit。
- 访问包含修订包的活动服务存储库,并使用基于 Web 的更新。
通过本地系统上的 Installation Manager,使用位于以下位置的基于 Web 的活动存储库中的修订包更新 Web 2.0 and Mobile Toolkit:
http://www.ibm.com/software/repositorymanager/com.ibm.websphere.W2MTK.v11
执行下列操作:
- 登录系统。
- 如果没有包含 IBM 软件用户标识和密码的 Installation Manager 凭证文件,请创建该文件以使您可以访问存储库。
注: 这些凭证是用于访问受保护 IBM 软件 Web 站点的凭证。
有关创建用于 Installation Manager 的密钥环文件的信息,请阅读 IBM Installation Manager V1.5 信息中心。提示: 创建密钥环文件时,如果 imutilsc 命令无法找到所指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config。
- 切换到 Installation_Manager_binaries/eclipse/tools 目录,其中 Installation_Manager_binaries 是 Installation Manager 的安装根目录。
- 使用响应文件来安装修订包。
- 从 Fix Central 下载包含修订包的文件,然后使用本地更新。
可以从 Fix Central 下载包含修订包的压缩文件。每个压缩的修订包文件都包含一个 Installation Manager 修订包存储库,并通常具有 .zip 扩展名。下载和抽取修订包文件之后,通过 Installation Manager 来使用修订包更新 Web 2.0 and Mobile Toolkit。
- 要下载修订包,请执行以下操作:
- 转至 Fix Central。
- 选择 WebSphere 作为产品组。
- 选择 WebSphere Application Server Web 2.0 and Mobile Toolkit 作为产品。
- 选择要更新的产品的版本。
- 选择您的操作系统作为平台,然后单击继续。
- 选择浏览修订,然后单击继续。
- 选择要下载的修订包,然后单击继续。
- 选择下载选项,然后单击继续。
- 单击我同意以同意条款和条件。
- 单击立即下载以下载修订包。
- 将二进制格式的压缩文件传输到将安装这些压缩文件的系统上。
- 将压缩的存储库文件抽取到系统上的某个目录中。
- 执行下列操作:
- 登录系统。
- 如果存储库需要用户名和密码,请创建密钥环文件以访问此存储库。
有关创建用于 Installation Manager 的密钥环文件的更多信息,请阅读 IBM Installation Manager V1.5 信息中心。
提示: 创建密钥环文件时,如果 imutilsc 命令无法找到所指定的 URL,请在存储库 URL 位置的末尾追加 /repository.config。
- 切换到 Installation_Manager_binaries/eclipse/tools 目录,其中 Installation_Manager_binaries 是 Installation Manager 的安装根目录。
- 使用响应文件来安装修订包。
示例
![[Windows]](../images/windows.gif)
以下是用于将产品更新到较高版本的响应文件的示例。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<server>
<repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.W2MTK.v11'/>
</server>
<profile id='Web 2.0 and Mobile Toolkit V1.1'
installLocation='C:\Program Files\IBM\WebSphere\AppServer\Web20Mobile'>
<data key='eclipseLocation' value='C:\Program Files\IBM\WebSphere\AppServer\Web20Mobile'/>
<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='Web 2.0 and Mobile Toolkit V1.1' id='com.ibm.websphere.W2MTK.v11'
version='1.1.0.20110427_2247'/>
</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>
提示: - 当您从 Installation Manager 安装目录中的 eclipse/tools 子目录运行 imcl listInstallationDirectories -verbose 命令时,可以找到概要文件标识(<profile . . . id='profile_ID'
. . . .> 和 <offering . . . profile='profile_ID'
. . . .>)。它与软件包组的名称相同。
- 当您从 app_server_root/bin 目录运行 historyInfo 或 genHistoryReport 命令时,可以在所生成报告的“Install Manager 产品标识”部分中找到产品标识 (<offering . . . id='offering_ID'
. . . .>)。
- version 是要安装的产品的特定版本(例如 1.1.0.20110427_2247)。可以选择指定此参数。
- 如果未指定 version,那么将安装产品的最新版本以及该版本的所有临时修订。
- 如果已指定 version,那么将安装产品的指定版本,并且不会安装该版本的任何临时修订。
当您针对存储库运行以下命令时,可能会发现已使用下划线将产品版本附加到产品标识的末尾:
./imcl listAvailablePackages -repositories source_repository
- 还可以使用 installFixes 自变量来指定 none、recommended 或 all,以指示要随产品安装哪些临时修订。
- 如果未指定产品版本,那么 installFixes 选项将缺省为 all。
- 如果已指定产品版本,那么 installFixes 选项将缺省为 none。