利用回應檔來解除安裝分散式作業系統中的 Liberty 修正套件

您可以利用 Installation Manager 回應檔,將 WebSphere® Application Server Liberty Core 回復到舊版。

開始之前

在回復程序期間,Installation Manager 必須存取舊版套件中的檔案。依預設,在您安裝套件時,會將這些檔案儲存在您的電腦中。如果變更預設值或刪除已儲存的檔案,則 Installation Manager 要求存取用於安裝較舊版本的儲存庫。

程序

  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. 登入系統。
  3. 停止回復中的 WebSphere Application Server Liberty Core 安裝架構上的所有伺服器和應用程式。
  4. 使用回應檔來回復產品。

    切換至 Installation Manager 安裝目錄中的 eclipse/tools 子目錄,然後回復產品。

    例如:
    • 適用於 Windows 平台 管理者或非管理者:
      imcl.exe
        input C:\temp\rollback_response_file.xml 
        -log C:\temp\rollback_log.xml 
        -secureStorageFile C:\IM\credential.store -masterPasswordFile C:\IM\master_password_file.txt
    • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台管理者:
      ./imcl
        input /var/temp/rollback_response_file.xml 
        -log /var/temp/rollback_log.xml 
        -secureStorageFile /var/IM/credential.store -masterPasswordFile /var/IM/master_password_file.txt
    • 適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台非管理者:
      ./imcl
        input user_home/var/temp/rollback_response_file.xml 
        -log user_home/var/temp/rollback_log.xml 
        -secureStorageFile user_home/var/IM/credential.store -masterPasswordFile user_home/var/IM/master_password_file.txt
    註: 程式可能會將重要的後置安裝指示寫在標準輸出中。

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

  5. 選擇性的: 列出已安裝的所有套件,以驗證回復作業。
    適用於 AIX 平台適用於 HP UNIX 平台適用於 LINUX 平台適用於 Solaris 平台
    ./imcl listInstalledPackages -long
    適用於 Windows 平台
    imcl.exe listInstalledPackages -long
適用於 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.5' installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
<rollback>
  <offering profile='WebSphere Liberty V8.5.5' id='com.ibm.websphere.liberty.v85' version='8.5.5.20101025_2108'/>
</rollback>
</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,安裝架構會回復至指定的舊版安裝架構,但不會安裝這個版本的臨時修正程式。

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

資訊中心條款 | 意見


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