How to Uninstall Websphere MQ on Linux (Step by Step Procedure)

Uninstalling Websphere MQ in Linux:
Remove install RPMs
login as root
root@websphere mwinstall]# rpm -ivh IBMJava2-SDK-1.4.2-0.0.i386.rpm to install, so I queried to find out what the software name of the rpm was as you cannot use the rpm filename that you used to install the rpm.
root@websphere mq]# rpm -qa | grep IBM
IBMJava2-SDK-1.4.2-0.0
rpm -e IBMJava2-SDK-1.4.2-0.0
This worked however for the other rpm;s I had to remove the fix-packs first
Remove fix pack rpm’s
Use this command to see which Websphere MQSeries base rpms and fixpacks are installed
root@websphere mq]# rpm -qa | grep MQSeries
I used rpm -ivh IBMJava2-142-ia32-SDK-1.4.2-6.0.i386.rpm to apply fix pack
So I used rpm -e IBMJava2-142-ia32-SDK-1.4.2-6.0
install: rpm -ivh MQSeriesRuntime-U809950-6.0.2-2.i386.rpm
remove: rpm -e MQSeriesRuntime-U809950-6.0.2-2
install: rpm -ivh MQSeriesServer-U809950-6.0.2-2.i386.rpm
remove: rpm -e MQSeriesServer-U809950-6.0.2-2
install: rpm -ivh MQSeriesJava-U809950-6.0.2-2.i386.rpm
remove: rpm -e MQSeriesJava-U809950-6.0.2-2
Remove base rpm’s
I had to do in this order
rpm -e MQSeriesJava-6.0.0-0
rpm -e MQSeriesServer-6.0.0-0
rpm -e MQSeriesRuntime-6.0.0-0
Query to make sure they have all been removed
rpm -qa | grep MQSeries
Remove MQ directories
/opt/mqm # cd /opt , rm -rf mqm
/var/mqm # cd /var , rm -rf mqm

Comments