Sun Java System Message Queue 3.7 UR1 Installation Guide

Uninstalling Message Queue

The following instructions explain how to uninstall Message Queue.

ProcedureTo Remove Message Queue on Solaris

  1. Stop any running client applications.

  2. Stop any running brokers. You will be prompted for user name (admin user) and password.

    imqcmd shutdown bkr [-b hostName:port]

  3. If you want to delete dynamic data, the Message Queue flat-file user repository, and the Message Queue access control properties file associated with each broker instance, remove this data using the following command.

    imqbrokerd -name instanceName -remove instance

  4. Find the zipped distribution file used to install Message Queue and place it in a temporary directory, temp_directory.

  5. Change directories to temp_directory:

    cd temp_directory

  6. Unzip the distribution file.

    unzip mq3_7-ent-platform.zip

    where platform is solsparc or soli386, depending on the platform.

  7. Change to the directory containing the Message Queue packages.

    cd mq3_7-ent

  8. Become root.

    su root

    When prompted, type your root password.

  9. Run the uninstall script.

    ./mquninstall

    The installation script lists Message Queue packages that are not shared, if any, that are currently installed. (It does not list shared Message Queue packages installed with Message Queue, and which might be in use by other programs.)

  10. If you want to uninstall all the listed packages, enter y (yes), and skip to Step 15. Otherwise, continue with Step 11.

  11. If you do not want to uninstall all of the Message Queue packages, then enter n (no), and use the pkgrm command, as described in Step 12, to uninstall the specific packages you want to remove.

  12. Remove the Message Queue packages, using the following command:

    pkgrm packageName

    where packageName specifies a Message Queue package. To remove multiple packages, separate the names by a space.

    Because other products might be using Message Queue packages, be careful about removing them. The pkgrm command will warn you of any dependencies on a package before removing it.

  13. When prompted, confirm your removal request by typing y (yes).

  14. Type q to quit.

  15. Exit the root shell.