This topic tells
you how to remove WebSphere® MQ for Linux® from your
system.
- Before starting to uninstall, end all WebSphere MQ activity.
- Log in as root.
- Use the dspmq command to display the
state of all the queue managers on the system.
- Use the endmqm command to stop all
running queue managers.
- Stop any listeners associated with the queue managers, using
the command:
endmqlsr -m QMgrName
- To check that you have stopped all of the necessary WebSphere MQ processes,
type:
ps -ef | grep mq
- Check that there are no processes listed that are running command
lines beginning amq or runmq. Ignore any
that start with amqi.
- 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
Note: If you have applied maintenance to the
install, remove these maintenance packages before removing the base install.
- 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
- 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.