This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.

Uninstalling Liberty from distributed operating systems by using response files

You can uninstall WebSphere® Application Server Liberty Core by using Installation Manager response files.

Before you begin

Optional: Perform or record the installation of Installation Manager and installation of the product to a temporary installation registry on one of your systems so that you can use this temporary registry to record the uninstall without using the standard registry where Installation Manager is installed.

About this task

Using Installation Manager, you can work with response files to uninstall the product in various ways. You can record a response file by using the GUI as described in the following procedure. Or, you can generate a new response file by hand or by taking an example and modifying it.

Procedure

  1. Stop all servers and applications on the WebSphere Application Server Liberty Core installation.
  2. Optional: Record a response file to uninstall the product: On one of your systems, perform the following actions to record a response file that uninstalls the product:
    1. From a command line, change to the eclipse subdirectory in the directory where you installed Installation Manager.
    2. Start Installation Manager from the command line by using the -record option.
      For example:
      • For Windows platformsAdministrator or non-administrator:
        IBMIM.exe -skipInstall "C:\temp\imRegistry" 
          -record C:\temp\uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsAdministrator:
        ./IBMIM -skipInstall /var/temp/imRegistry 
          -record /var/temp/uninstall_response_file.xml
      • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsNon-administrator:
        ./IBMIM -skipInstall user_home/var/temp/imRegistry 
          -record user_home/var/temp/uninstall_response_file.xml
      Tip: 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 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.

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

      For more information, read the IBM® Installation Manager Information Center.

    3. Click Uninstall.
    4. In the Uninstall Packages window, perform the following actions.
      1. Select IBM WebSphere Application Server Liberty Core and the appropriate version.
        Note: If you are uninstalling the trial version of this offering, select IBM WebSphere Application Server Liberty Core Trial and the appropriate version.
      2. 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 sub-directory in the directory where you installed Installation Manager and use the response file that you created to uninstall the product.
    For example:
    • For Windows platformsAdministrator 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 platformsAdministrator:
      ./imcl
        input /var/temp/uninstall_response_file.xml 
        -log /var/temp/uninstall_log.xml
    • For AIX platformsFor HP UNIX platformsFor LINUX platformsFor Solaris platformsNon-administrator:
      ./imcl
        input user_home/var/temp/uninstall_response_file.xml 
        -log user_home/var/temp/uninstall_log.xml

    Go to the IBM Installation Manager Information Center for more information.

  4. Optional: 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. Optional: 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 Information Center for information about using the uninstall script to perform this procedure.

For Windows platforms

Example

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.v85' 
  profile='WebSphere Liberty V8.5'/>
</uninstall>
<profile id='WebSphere Liberty V8.5' 
  installLocation='C:\Program Files\IBM\WebSphere\Liberty'>
</profile>
</agent-input>
Tip: When you uninstall the IBM WebSphere Application Server LibertyCore package, you must uninstall all the packages under the same package group that are extensions to the IBM WebSphere Application Server LibertyCore package. IBM WebSphere SDK Java™ Technology Edition Version 7.0 for Liberty is such an extension. To uninstall the entire package group, remove the id attribute in the <offering ../> stanza (id='com.ibm.websphere.liberty.v85' in the previous example) from the response file. Installation Manager then uninstalls all of the packages under the package group.

Icon that indicates the type of topic Task topic



Timestamp icon Last updated: Tuesday, 12 December 2017
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_ins_uninstallation_dist_silent
File name: twlp_ins_uninstallation_dist_silent.html