Désinstallation de Liberty de systèmes d'exploitation distribués via des fichiers de réponses

Vous pouvez désinstaller WebSphere Application Server Liberty à l'aide de fichiers de réponses Installation Manager.

Avant de commencer

Facultatif : Effectuez ou enregistrez l'installation d'Installation Manager et l'installation du produit dans un registre d'installation temporaire sur l'un de vos systèmes de manière à pourvoir enregistrer la désinstallation dans ce registre temporaire et non dans le registre standard où est installé Installation Manager.

Pourquoi et quand exécuter cette tâche

Avec Installation Manager, vous pouvez utiliser des fichiers de réponses pour désinstaller le produit de différentes manières. Vous pouvez enregistrer un fichier de réponses à l'aide de l'interface graphique tel que décrit dans la procédure suivante, ou bien vous pouvez générer un nouveau fichier de réponses à la main ou en modifiant un exemple.

Procédure

  1. Arrêtez tous les serveurs et toutes les applications sur l'installation WebSphere Application Server Liberty.
  2. Facultatif : Enregistrez un fichier de réponses pour désinstaller le produit : Sur l'un de vos systèmes, effectuez les actions suivantes pour enregistrer un fichier de réponses qui vous permettra de désinstaller le produit :
    1. A partir d'une ligne de commande, placez-vous dans le sous-répertoire eclipse du répertoire dans lequel vous avez installé Installation Manager.
    2. Démarrez Installation Manager à partir de la ligne de commande en utilisant l'option d'enregistrement -record.
      Exemple :
      • For Windows platforms Administrateur ou non administrateur :
        IBMIM.exe -skipInstall "C:\temp\imRegistry" 
          -record C:\temp\uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsAdministrateur :
        ./IBMIM -skipInstall /var/temp/imRegistry 
          -record /var/temp/uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsNon administrateur :
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
          -record user_home/var/temp/uninstall_response_file.xml
      Conseil : If you choose to use the -skipInstall parameter with a temporary installation registry created as described in Before you begin, Installation Manager uses the temporary installation registry while recording the response file. It is important to note that when the -skipInstall parameter is specified, no product packages are installed or uninstalled. All of the actions that you perform in Installation Manager simply update the installation data that is stored in the specified temporary registry. After the response file is generated, it can be used to uninstall the product, removing the product files and updating the standard installation registry.

      The -skipInstall operation should not be used on the actual agent data location used by Installation Manager. This is unsupported. Use a clean writable location, and reuse that location for future recording sessions.

      For more information, read the IBM® Installation Manager product documentation.

    3. Click Uninstall.
    4. In the Uninstall Packages window, select the Liberty package that you want to uninstall, and click Next.
    5. Review the summary information.
    6. Click Uninstall.
      • If the uninstallation is successful, the program displays a message that indicates success.
      • If the uninstallation is not successful, click View log to troubleshoot the problem.
    7. Click Finish.
    8. Click File > Exit to close Installation Manager.
  3. Use the response file to uninstall the product: From a command line on each of the systems from which you want to uninstall the product, change to the eclipse/tools subdirectory in the directory where you installed Installation Manager and use the response file that you created to uninstall the product.
    For example:
    • For Windows platforms Administrator or non-administrator:
      imcl.exe 
        input C:\temp\uninstall_response_file.xml 
        -log C:\temp\uninstall_log.xml
    • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsAdministrateur :
      ./imcl
        input /var/temp/uninstall_response_file.xml 
        -log /var/temp/uninstall_log.xml
    • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsNon administrateur :
      ./imcl
        input user_home/var/temp/uninstall_response_file.xml 
        -log user_home/var/temp/uninstall_log.xml

    Go to the IBM Installation Manager product documentation for more information.

  4. Facultatif : List all installed packages to verify the uninstallation.
    For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platforms
    ./imcl listInstalledPackages
    For Windows platforms
    imcl listInstalledPackages
  5. Facultatif : Uninstall IBM Installation Manager.
    Important : Before you can uninstall IBM Installation Manager, you must uninstall all of the packages that were installed by Installation Manager.

    Read the IBM Installation Manager product documentation for information about using the uninstall script to perform this procedure.

For Windows platforms

Exemple

The following is an example of a response file for uninstalling the product.
<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean='true' temporary='true'>
<uninstall modify='false'>
<offering id='com.ibm.websphere.liberty.ND' 
  profile='WebSphere Liberty'/>
</uninstall>
<profile id='WebSphere Liberty' 
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>
Conseil : Si vous désinstallez le package WebSphere Application Server Liberty, vous devez désinstaller tous les packages dépendant du même groupe de packages qui sont des extensions du package WebSphere Application Server Liberty. IBM SDK, Java™ Technology Edition, Version 8.0 for WebSphere Liberty avec Installation Manager est une extension de ce type. Pour désinstaller le groupe de package entier, retirez simplement du fichier de réponses l'attribut id dans la section <offering ../> (id='com.ibm.websphere.liberty.ND' dans l'exemple précédent). Installation Manager désinstalle ensuite tous les packages sous le groupe de packages.

Icône indiquant le type de rubrique Rubrique Tâche

Nom du fichier : twlp_ins_uninstallation_dist_silent.html