Uninstalling WebSphere MQ

 

This topic tells you how to remove WebSphere MQ for Linux from your system.

  1. Before starting to uninstall, end all WebSphere MQ activity.

    1. Log in as root.

    2. Use the dspmq command to display the state of all the queue managers on the system.

    3. Use the endmqm command to stop all running queue managers.

    4. Stop any listeners associated with the queue managers, using the command:
       endmqlsr -m QMgrName

    5. To check that you have stopped all of the necessary WebSphere MQ processes, type:
      ps -ef | grep mq

    6. Check that there are no processes listed that are running command lines beginning amq or runmq. Ignore any that start with amqi.

  2. Before you uninstall WebSphere MQ for Linux you must find out the names of the packages (components) currently installed on your system. To list all the packages with their version information, enter the following:
    rpm -q -a | grep MQSeries
    rpm -q -a | grep gsk

    If you have applied maintenance to the install, remove these maintenance packages before removing the base install.

  3. Some of the installed packages are dependent on others. The rpm command will not remove a package if others are dependent on it. For this reason you must uninstall the packages in such an order that each one you uninstall has no dependencies from other packages. To list all of the packages on which a named package (for example MQSeriesServer) depends, enter the following:
    rpm -q --requires MQSeriesServer
    Alternatively, remove all the components at the same time by appending all the package names to the rpm command arguments. For example, to remove the runtime, Server and SDK components, enter the following:
    rpm -ev MQSeriesRuntime MQSeriesServer MQSeriesSDK

  4. After uninstalling , you might want to delete the contents of /var/mqm, which is not removed by the uninstallation. Only do this if you do not need your queue manager data. For example, do not delete the content if you plan to migrate to a later version of WebSphere MQ.

You have now uninstalled WebSphere MQ.

 

Parent topic:

Welcome to WebSphere MQ for Linux


lq10880_