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

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

開始之前

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

程序

  1. 選擇性的: 如果儲存庫需要使用者名稱和密碼,請建立一個認證儲存檔來存取這個儲存庫。
    提示: 當建立認證儲存檔時,如果 imutilsc 指令找不到所指定的 URL,請在儲存庫 URL 位置尾端附加 /repository.config
  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'/>
</server>
<profile id='WebSphere Liberty' installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
<rollback>
  <offering profile='WebSphere Liberty' id='com.ibm.websphere.liberty' version='16.0.2.20161025_2108'/>
</rollback>
</agent-input>
提示:
  • 設定檔 ID (<profile . . . id='profile_ID' . . . .><offering . . . profile='profile_ID' . . . .>) 在您從 Installation Manager 安裝目錄的 eclipse/tools 子目錄中執行 imcl listInstallationDirectories -verbose 指令時就可以找到。它與套件群組的名稱相同。
  • 供應項目 ID (<offering . . . id='offering_ID' . . . .>) 位於所支援作業系統的 Liberty 產品供應項目中。
  • version 是要回復的供應項目的特定版本(例如 16.0.2.20161025_2108)。
    這項指定是選用的。
    • 如果指定 version,安裝架構會回復至先前安裝的供應項目版本,並安裝適用於這個版本的所有臨時修正程式。
    • 如果指定了 version,安裝架構會回復至指定的舊版安裝架構,但不會安裝這個版本的臨時修正程式。
  • 當您回復成先前的修正套件時,會移除不適用於該修正套件的任何 Liberty 附加程式和特性。
    如果您先前已安裝 Liberty 特性和附加程式,但在您回復安裝架構時,卻無權存取 Liberty Repository,請在回應檔中指定下列內容。指定這些內容,會解除安裝所有的特性和附加程式,但可讓產品回復。
    <data key='user.feature' value=''/> 
    <data key='user.addon' value=''/>

    請注意,若為修正套件 16.0.0.2 及更新版本,當您安裝產品時,會提供並安裝適用於該版本的所有特性。


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

檔名:twlp_ins_rollback_silent.html