Uninstalling products on UNIX silently

You can use the -createcontrolfile command line option to create a control file that you can use to perform an unattended, or silent, uninstallation of products. This topic provides the following procedures to uninstall BMC products from a command line:

To create a control file to uninstall products

  1. Open a command prompt.
  2. Change to the BMC Products Installation directory/Uninstall directory.
  3. Start the uninstallation utility by entering the following command:
    ./uninstall.sh -createcontrolfile
  4. On the Welcome page, click Next.
  5. Enter the name of the directory from which you want to uninstall products. Click Next.
  6. Select the products that you want to uninstall. Click Next.
  7. If you selected to uninstall all products, optionally select to uninstall the uninstallation utility.
  8. Proceed through the uninstallation, entering any requested information.
  9. On the Review Settings for Control File page, click Create Control File.
  10. Verify that the process was successful and optionally view the control file.
  11. Click Finish to exit the installation utility.

By default, the new control file is stored in $HOME /BMCINSTALL in a subdirectory with the naming convention computername-PID-timestamp

After the control file is created, you can rename it and copy it to another location or to other computers, then use the following procedure to uninstall products.

Note

The computer where you use the control file must have the same configuration, such as operating system, installed products, product installation directory, and so forth, as the computer on which the control file was created.

To uninstall products by using the new control file

  1. Open a command prompt.
  2. Change to the BMC Products Installation directory/Uninstall/Install/instbin directory.
  3. Enter the following command:
    ./thorinst.sh -uninstall <path to control file> -log <path to log file> -output <path to output log file>
    The option path to control file is the path to and name of the control file that you created in the previous procedure. The options -log and -output let you specify a location for a standard log file and an output log file. The standard log file contains all installation status information, and the output log file contains messages on the progress of the installation that are normally sent to standard output. The path to log file and path to output log file variables can be any valid path and file name (with a .txt extension) that you specify. 

To uninstall products by using a flag

You can also uninstall silently by using the -silent flag and if you wish to uninstall everything select "all"

For example, ./uninstall.sh -silent all

Uninstalling a specific product, ./uninstall -silent pkiskm

 

Note

You can either use the the uninstallatoin utility in the BMC_ROOT\Uninstall directory or you can download the installer and use the uninstall utility for uninstallation.

For example,  ./uninstall.sh -bmcinstalldir <BMC ROOT> -silent 

Uninstalling a specified product,  ./uninstall.sh -bmcinstalldir pkiskm -silent 

Was this page helpful? Yes No Submitting... Thank you

Comments