利用回應檔在分散式作業系統上安裝 Liberty 修正套件

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

關於這項作業

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

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

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

程序

  1. 如果要取得 WebSphere Application Server Liberty Core 安裝架構所能使用的臨時修正程式和修正套件清單,以及各修正程式具體的相關資訊,請執行下列動作。
    1. 前往修正程式中心
    2. 選取 WebSphere 作為產品群組。
    3. 選取 WebSphere Application Server 作為產品。
    4. 選取已安裝的版本。
    5. 選取您的作業系統作為平台,然後按一下繼續
    6. 選取瀏覽並找出修正程式,然後按一下繼續
    7. 按一下每一個修正程式下面的相關資訊,以檢視該修正程式的相關資訊。
    8. 記下您要安裝之修正套件的名稱。
  2. 利用下列其中一個程序,以修正套件來更新 WebSphere Application Server Liberty Core
    • 存取包含修正套件的現用服務儲存庫,然後使用 Web 型更新。
      請利用本端系統上的 Installation Manager,以現用 Web 型服務儲存庫中的臨時修正程式來更新 WebSphere Application Server Liberty Core
      • 對於現用服務儲存庫,請使用安裝期間通用的產品供應項目儲存庫所用的相同 URL。 這些 URL 的型樣基礎如下:
        http://www.ibm.com/software/repositorymanager/offering_ID
        其中 offering_ID 是您在支援的作業系統適用的 WebSphere Application Server 產品供應項目中找到的供應項目 ID。
      • 這些位置不包含您可以利用 Web 瀏覽器來存取的網頁。 它們是您指定給 Installation Manager 的遠端 Web 型儲存庫位置,讓它能夠維護產品。
      請執行下列動作:
      1. 登入系統。
      2. 建立可讓您存取儲存庫的檔案。Installation Manager 認證儲存檔和主要密碼檔含有 IBM 軟體使用者 ID 和密碼,並且可讓您存取受保護的 IBM 軟體網站。當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config
        註: 若為 Installation Manager 1.6.2 版以及更新版本,您應該使用 -secureStorageFile-masterPasswordFile 選項,將認證儲存在認證儲存檔中。在舊版 Installation Manager 中,-keyring-password 選項是用來存取金鑰環檔案中的認證。在 1.6.2 版中,這些選項已淘汰。因檔案結構的差異,並無金鑰環檔案至儲存檔的移轉路徑。
      3. 停止正在更新之 WebSphere Application Server 安裝上的所有伺服器及應用程式。
      4. 切換至 Installation_Manager_binaries/eclipse/tools 目錄,其中 Installation_Manager_binaries 是 Installation Manager 的安裝根目錄。
      5. 使用回應檔安裝修正套件。
        例如:
        • 適用於 Windows 平台 管理者或非管理者:
          imcl.exe -acceptLicense
            input C:\temp\update_response_file.xml
            -log C:\temp\update_log.xml
            -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
        • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
          ./imcl -acceptLicense
            input /var/temp/update_response_file.xml
            -log /var/temp/update_log.xml
            -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt
        • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
          ./imcl -acceptLicense
            input user_home/var/temp/update_response_file.xml
            -log user_home/var/temp/update_log.xml
            -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt
    • 從「修正程式中心」下載包含修正套件的檔案,並使用本端更新。
      您可以從「修正程式中心」下載包含修正套件的壓縮檔。每個壓縮的修正套件檔都包含一個修正套件的 Installation Manager 儲存庫,副檔名通常是 .zip。 下載及解壓縮修正套件檔案之後,請利用 Installation Manager 及修正套件來更新 WebSphere Application Server Liberty。
      1. 如果要下載修正套件,請執行下列動作:
        1. 前往修正程式中心
        2. 選取 WebSphere 作為產品群組。
        3. 選取 WebSphere Application Server 作為產品。
        4. 選取已安裝的版本。
        5. 選取您的作業系統作為平台,然後按一下繼續
        6. 選取瀏覽並找出修正程式,然後按一下繼續
        7. 選取您要下載的修正套件,然後按一下繼續
        8. 選取下載選項,然後按一下繼續
        9. 按一下我同意以同意條款。
        10. 按一下立即下載以下載修正套件。
        11. 以二進位格式,將壓縮檔傳送至將在其中安裝該檔案的系統。
        12. 將壓縮的儲存庫檔擷取至系統上的某個目錄。
      2. 請執行下列動作:
        1. 登入系統。
        2. 如果儲存庫需要使用者名稱和密碼,請建立一個認證儲存檔來存取這個儲存庫。

          如需建立 Installation Manager 認證儲存檔的相關資訊,請參閱 IBM Installation Manager 資訊中心

          提示: 當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config
        3. 停止更新中的 WebSphere Application Server Liberty Core 安裝架構上的所有伺服器和應用程式。
        4. 切換至 Installation_Manager_binaries/eclipse/tools 目錄,其中 Installation_Manager_binaries 是 Installation Manager 的安裝根目錄。
        5. 使用回應檔安裝修正套件。
          例如:
          • 適用於 Windows 平台 管理者或非管理者:
            imcl.exe -acceptLicense
              input C:\temp\update_response_file.xml
              -log C:\temp\update_log.xml
              -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
          • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
            ./imcl -acceptLicense
              input /var/temp/update_response_file.xml
              -log /var/temp/update_log.xml
              -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt
          • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
            ./imcl -acceptLicense
              input user_home/var/temp/update_response_file.xml
              -log user_home/var/temp/update_log.xml
              -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt

範例

適用於 Windows 平台以下是將產品更新至新版的回應檔範例。
<?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='C:\Program Files\IBM\WebSphere\Liberty'>
</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='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 指令時,可以找到設定檔 ID(<profile . . . id='profile_ID' . . . .><offering . . . profile='profile_ID' . . . .>)。它與套件群組的名稱相同。
  • 您可以在支援的作業系統的 WebSphere Application Server 產品供應項目中,找到供應項目 ID (<offering . . . id='offering_ID' . . . .>)。
  • version 是要安裝的供應項目特定版本(例如 8.5.5.20101025_2108)。 這項指定是選用的。
    • 如果指定 version,會安裝供應項目的最新版本,以及適用於這個版本的所有臨時修正程式。
    • 如果指定了 version,會安裝指定的供應項目版本,但不會安裝這個版本的臨時修正程式。
    對儲存庫執行下列指令時,可發現已使用底線將供應項目版本附加至供應項目 ID 的尾端:
    ./imcl listAvailablePackages -repositories source_repository
  • 您也可以在 installFixes 引數中指定 nonerecommendedall,以指示要隨供應項目安裝哪些臨時修正程式。
    • 如果指定供應項目版本,installFixes 選項會預設為 all
    • 如果指定了供應項目版本,installFixes 選項會預設為 none
  • 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
    [8.5.5.3 或更新版本]註: 如果您要更新為 8.5.5.3 版,但是先前安裝的「Liberty 儲存庫」特性目前沒有連接至「IBM WebSphere Liberty 儲存庫」,就無法使用回應檔來更新。請改為執行 imcl 指令,並指定 user.feature="" 參數,來更新產品。
    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'/>
    [8.5.5.5 或更新版本]若為 8.5.5.5 版及更新版本,不需要 user.accept.license=true
    Liberty 儲存庫[8.5.5.6 或更新版本]您也可以從「Liberty 資產儲存庫服務」實例或本端目錄型儲存庫,來安裝資產。如需相關資訊,請參閱使用 Installation Manager 來安裝資產。在 repository 元素中新增儲存庫 URL 或目錄。如果 Installation Manager 無法辨識儲存庫,請直接指向 repository.config 檔。在您安裝資產時,會依照您的指定順序來存取儲存庫;在下列範例中,會先從「Liberty 資產儲存庫服務」實例 https://your_onprem_asset_repo_url,再從 D:\IBM\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="D:\IBM\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 儲存庫

  • 當更新產品時,您的回應檔必須包含起始安裝產品時所用的特性;否則,不會依預期進行您的更新。 如果您沒有新增這些特性到您的回應檔中,Installation Manager 會假設您要移除它們。

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

資訊中心條款 | 意見


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