Sunday, 3 January 2016

Uninstall WebSphere MQ on Linux (RHEL)

The following post is showing the Uninstall  IBM Webspere MQ  on Redhat Enterprise Linux 5.5 (32 bit) platform. 

1. Stop all WebSphere MQ applications associated with the installation you are uninstalling.

2. For a server installation, end any WebSphere MQ activity associated with the installation you are uninstalling:

a. Log in as a user in the group mqm.

b. Set up your environment to work with the installation you want to uninstall. Enter the following command:   . MQ_INSTALLATION_PATH/bin/setmqenv -s
where MQ_INSTALLATION_PATH refers to the location where WebSphere MQ is installed.

[root@middlewaretech bin]# . setmqenv -s

c. Display the state of all queue managers on the system. Enter the following command:

[root@middlewaretech bin]# dspmq -o installation
QMNAME(QMA1)                                               INSTNAME(Installation1) INSTPATH(/opt/mqm) INSTVER(7.5.0.2)

d. Stop all running queue managers associated with the installation you want to uninstall. Enter the following command for each queue manager:

[mqm@middlewaretech bin]$ endmqm QMA1
Quiesce request accepted. The queue manager will stop when all outstanding work
is complete.

e. Stop any listeners associated with the queue managers. Enter the following command for each queue manager:

[mqm@middlewaretech bin]$ endmqlsr -m  QMA1
No WebSphere MQ listeners for Queue Manager 'QMA1'.
[mqm@middlewaretech bin]$

3. Log in as root.

4. Uninstall WebSphere MQ using the rpm command:

Find out the names of the packages (components) currently installed on your system, by entering the following command:

[root@middlewaretech bin]# rpm -qa | grep -i MQ
MQSeriesClient-7.5.0-2
MQSeriesMan-7.5.0-2
MQSeriesServer-7.5.0-2
MQSeriesSDK-7.5.0-2
MQSeriesJava-7.5.0-2
MQSeriesJRE-7.5.0-2
MQSeriesRuntime-7.5.0-2
MQSeriesSamples-7.5.0-2
MQSeriesExplorer-7.5.0-2


Remove install RPMs by entering the following command:

[root@middlewaretech bin]# rpm -e MQSeriesClient-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesMan-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesServer-7.5.0-2
[root@middlewaretech bin]# rpm  -e MQSeriesSDK-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesJava-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesSamples-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesExplorer-7.5.0-2
 [root@middlewaretech bin]# rpm -e MQSeriesJRE-7.5.0-2
[root@middlewaretech bin]# rpm -e MQSeriesRuntime-7.5.0-2


Query to make sure they have all been removed

rpm -qa | grep MQSeries

Remove MQ directories

/opt/mqm


/var/mqm

No comments: