利用回應檔在 IBM i 作業系統上安裝 Liberty 修正套件

您可以利用 Installation Manager 回應檔,將 WebSphere® Application Server Liberty Core 更新至較新的版本。

開始之前

Liberty 儲存庫[8.5.5.6 或更新版本]如果您想從本端目錄型儲存庫或「Liberty 資產儲存庫服務」實例,來安裝 Liberty 資產,請配置儲存庫。如需 Liberty 資產儲存庫的相關資訊,請參閱使用 Installation Manager 來安裝資產

提示: 作為這篇文章中所說明之程序的替代方法,Installation Manager 可讓您在回應檔或指令行中,利用 updateAll 指令來搜尋及更新所有已安裝的套件。 只有當您具有完整的控制權,可決定將哪些修正程式包含在目標儲存庫中時,才使用此指令。如果建立並指向只包括您要安裝之特定修正程式的一組自訂儲存庫,則確信您應該能夠使用此指令。 如果您啟用搜尋服務儲存庫,或直接從其他現用 Web 型儲存庫安裝修正程式,您可能不想選取這個選項,以便能夠在指令行使用 install 指令並指定 -installFixes 選項,或在回應檔中使用 installFixes 屬性,只選取您想要安裝的修正程式。

關於這項作業

[8.5.5.4 或更新版本]如果要安裝 Liberty 設定檔 8.5.5.4 版及更新版本,您必須具有 IBM Installation Manager 1.6.2 版或更新的版本。

程序

  1. 選擇性的: 如果儲存庫需要使用者名稱和密碼,請建立一個認證儲存檔來存取這個儲存庫。
    提示: 當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config
    註: 當使用 Installation Manager 1.6.2 版及更新的版本時,您應該利用 -secureStorageFile-masterPasswordFile 選項,將認證儲存在認證儲存檔中。 在 1.6.2 版之前的 Installation Manager 版本中,-keyring-password 選項是用來存取金鑰環檔案中的認證。 在 1.6.2 版中,這些選項已淘汰。 因檔案結構的差異,並無金鑰環檔案至儲存檔的移轉路徑。 如需利用 -secureStorageFile-masterPasswordFile 選項將認證儲存在認證儲存檔的相關資訊,請參閱 Installation Manager 1.6 版資訊中心。 如需利用 -keyring-password 選項將認證儲存在金鑰環檔案的相關資訊,請參閱 Installation Manager 1.5 版資訊中心
  2. 利用具備 *ALLOBJ 和 *SECADM 特殊權限的使用者設定檔來登入 IBM i 系統。
  3. 在 CL 指令行上,執行 STRQSH 指令,以啟動 Qshell 指令 Shell。
  4. 利用回應檔來更新產品。
    切換至 Installation Manager 安裝目錄中的 eclipse/tools 子目錄,然後更新產品。 例如:
    ./imcl -acceptLicense
      input $HOME/WASFiles/temp/update_response_file.xml
      -log $HOME/WASFiles/temp/update_log.xml
      -secureStorageFile $HOME/WASFiles/temp/credential.store -masterPasswordFile $HOME/WASFiles/master_password_file.txt
    註: 程式可能會將重要的後置安裝指示寫在標準輸出中。

    如需使用 Installation Manager 的相關資訊,請參閱 IBM Installation Manager 資訊中心

範例

以下是將 WebSphere Application Server Liberty Core 更新至較新版本的回應檔範例。
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<server>
  <repository location='https://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85'/>
</server>	<profile id='WebSphere Liberty V8.5' installLocation='/QIBM/ProdData/WebSphere/AppServer/V85/LibertyCore'>
  <data key='was.install.os400.profile.location' value='/QIBM/UserData/WebSphere/AppServer/V85/LibertyCore'/>
</profile>
<install modify='false'>
  <offering profile='WebSphere Liberty V8.5' id='com.ibm.websphere.liberty.v85'
    version='8.5.5.20101025_2108'/>
</install>
<preference name='com.ibm.cic.common.core.preferences.eclipseCache' value='/QIBM/UserData/InstallationManager/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 指令時,可以找到設定檔 ID(<profile . . . id='profile_ID' . . . .><offering . . . profile='profile_ID' . . . .>)。它與套件群組的名稱相同。
  • version 是要安裝的供應項目特定版本(例如 8.5.5.20101025_2108)。 這項指定是選用的。
    • 如果指定 version,會安裝供應項目的最新版本,以及適用於這個版本的所有臨時修正程式。
    • 如果指定了 version,會安裝指定的供應項目版本,但不會安裝這個版本的臨時修正程式。
    對儲存庫執行下列指令時,可發現已使用底線將供應項目版本附加至供應項目 ID 的尾端:
    ./imcl listAvailablePackages -repositories source_repository
  • 還可以指定 nonerecommendedall-installFixes 引數,以指示您要隨供應項目安裝的臨時修正程式。
    • 如果指定供應項目版本,則 -installFixes 選項預設為 all
    • 如果指定了供應項目版本,則 -installFixes 選項預設為 none
  • 如果您透過安裝 WebSphere Application Server 群組 PTF 來取得修正套件,您可以利用本端修正套件儲存庫來安裝修正套件。

    如需本端修正套件儲存庫的相關資訊,請參閱 /QIBM/WAS/WASFixpacks/ReadmeV8.html/QIBM/WAS/WASFixpacks/ReadmeV8.txt 檔。

  • Liberty 儲存庫[8.5.5.2 或更新版本]您可以指定要從「Liberty 儲存庫」安裝的其他資產。如需「Liberty 儲存庫」資產清單,請參閱 WASdev.net 的「下載」頁面

    如果要安裝「Liberty 儲存庫」的資產,您必須能夠存取網際網路,而且必須要有 IBM Installation Manager 1.6.2 或更新版本。舊版的 Installation Manager 不提供安裝「Liberty 儲存庫」資產的選項。如果您使用回應檔,且尚未將 Installation Manager 更新為 1.6.2 或更新版本,在安裝期間會忽略您在回應檔中指定的資產。

    如果您想安裝其他特性,請在回應檔中指定兩個額外的 data key 元素。您可以使用符號名稱或簡稱。

    下列範例是使用符號名稱來安裝 「Portlet 儲存器」和「Portlet 服務」特性。
    <data key='user.feature' value='com.ibm.websphere.appserver.portlet-2.0,,com.ibm.websphere.appserver.portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    下列範例是使用簡稱來安裝「Portlet 儲存器」和「Portlet 服務」特性。
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    [8.5.5.5 或更新版本]若為 8.5.5.5 版及更新版本,不需要 user.accept.license=true
    Liberty 儲存庫[8.5.5.4 或更新版本]從 8.5.5.4 版起,不再提供 extprogmodels 特性。請改為安裝 extendedPackage-1.0 附加程式,或是從 Liberty 儲存庫安裝您需要的個別特性。如需相關資訊,請參閱下列主題:
    下列範例是使用 user.addon 參數來安裝「延伸程式設計模型」,以及使用含有簡稱的 user.feature 參數,來安裝「Portlet 儲存器」與「Portlet 服務」特性:
    <data key='user.addon' value='extendedPackage-1.0'/>
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.accept.license' value='true'/>
    Liberty 儲存庫[8.5.5.6 或更新版本]您也可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。如需相關資訊,請參閱使用 Installation Manager 來安裝資產。在 repository 元素中新增儲存庫 URL 或目錄。如果 Installation Manager 無法辨識儲存庫,請直接指向 repository.config 檔。在您安裝資產時,會依照您的指定順序來存取儲存庫;在下列範例中,會先從「Liberty 資產儲存庫服務」實例 https://your_onprem_asset_repo_url,再從 /QIBM/LocalAssetRepo 目錄型儲存庫,來安裝資產。
    <server>
    <repository location="http://www.ibm.com/software/repositorymanager/com.ibm.websphere.liberty.v85" />
    <repository location="https://your_onprem_asset_repo_url" />
    <repository location="/QIBM/LocalAssetRepo" />
    </server>
    依預設,「Liberty 儲存庫」會是安裝期間所存取的最後一個儲存庫。如果要停用對「Liberty 儲存庫」的存取權,請將 user.useLibertyRepository 參數設為 false
    <data key='user.addon' value='extendedPackage-1.0'/>
    <data key='user.feature' value='portlet-2.0,,portletserving-2.0'/>
    <data key='user.useLibertyRepository' value='false'/>

    如果要進一步瞭解「Liberty 儲存庫」及其包含的資產,請參閱 Liberty 儲存庫

  • [8.5.5.3 或更新版本]註: 如果您要更新為 8.5.5.3 版,但是先前安裝的「Liberty 儲存庫」特性目前沒有連接至「IBM WebSphere Liberty 儲存庫」,就無法使用回應檔來更新。請改為執行 imcl 指令,並指定 user.feature="" 參數,來更新產品。

指示主題類型的圖示 作業主題

資訊中心條款 | 意見


「時間戳記」圖示 前次更新: 2015 年 6 月 22 日
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_ins_upgrade_is
檔名:twlp_ins_upgrade_is.html