Sun Java System Message Queue 3.7 UR1 Installation Guide

Uninstalling Message Queue on Linux

The following instructions explain how to uninstall Message Queue on Linux.

ProcedureTo Remove Message Queue on Linux

  1. Stop any running client applications.

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

    imqcmd shutdown bkr [-b hostName:port]
  3. Unless you want to retain 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. Get the uninstall script.

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

  6. Change directories to temp_directory.

    cd temp_directory
  7. Unzip the distribution file.


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

    cd mq3_7-ent

  9. Become root.

    su root

    When prompted, type your root password.

  10. Run the uninstall script.


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

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

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

  13. Remove the Message Queue RPM packages manually using the following command:

    rpm -e packageName [[packageName]...]

    Where packageName specifies a Message Queue RPM package.

    Because other products might be using Message Queue RPM packages, be careful about removing them.

  14. Exit the shell.