Manually uninstalling on Linux platforms

 

  1. Use the killall -9 java command to verify that no Java processes are running.

    If there are Java processes that you do not intend to stop, stop all WAS-related processes.

  2. Halt any running WebSphere MQ queue managers.

    1. Show the state of any queue managers.

      dspmq

    2. For each running queue manager.

      endmqm -i

    3. Check for any IPCs.

      ipcs -a

    4. Delete the IPCs.

      ipcrm -[qms] [ID]

  3. Verify that no WebSphere MQ processes are running.

    kill -9 amq_pid_1 amq_pid_2 ... amq_pid_n

  4. Find any stray amq PIDs.

    ps -e | grep #AMQ_COMMAND#'

  5. Show packages for the base WAS product and the IBM HTTP Server product

    rpm -qa | grep WS

  6. Show packages for the embedded messaging feature, which is based on IBM WebSphere MQ technology

    rpm -qa | grep MQ

  7. Show more packages for the embedded messaging feature

    rpm -qa | grep wemps

    If no packages appear when using these commands, skip the next step.

  8. Remove any WAS-related packages for the product you are uninstalling.

    rpm -e packagename

    Do not remove packages for WAS products that you are not uninstalling. You can identify packages that belong to V5.1 by the 51 on the end of WSB packages and WSN packages. WSBM and WSNM packages are for the embedded messaging feature.

    Do not remove IBM WebSphere MQ packages if you have installed IBM WebSphere MQ as a separate product.

    Do not remove embedded messaging packages if you intend to leave the embedded messaging feature installed on the machine.

    If you do intend to remove WebSphere MQ or embedded messaging packages, include them in the commands you are running to remove packages. For example, run these commands as root

    rpm -e MQSeriesClient-5.3.0-1
    rpm -e MQSeriesMsg_Zh_CN-5.3.0-1
    rpm -e MQSeriesMsg_Zh_TW-5.3.0-1
    rpm -e MQSeriesMsg_de-5.3.0-1
    rpm -e MQSeriesMsg_es-5.3.0-1
    rpm -e MQSeriesMsg_fr-5.3.0-1
    rpm -e MQSeriesMsg_it-5.3.0-1
    rpm -e MQSeriesMsg_ja-5.3.0-1
    rpm -e MQSeriesMsg_ko-5.3.0-1
    rpm -e MQSeriesMsg_pt-5.3.0-1
    rpm -e MQSeriesRuntime-5.3.0-1
    rpm -e MQSeriesSDK-5.3.0-1
    rpm -e MQSeriesJava-5.3.0-1
    rpm -e MQSeriesServer-5.3.0-1
    rpm -e MQSeriesJava-5.3.0-1
    rpm -e wemps-runtime-2.1.0-0
    rpm -e wemps-msg-De_DE-2.1.0-0
    rpm -e wemps-msg-Es_ES-2.1.0-0
    rpm -e wemps-msg-Fr_FR-2.1.0-0
    rpm -e wemps-msg-It_IT-2.1.0-0
    rpm -e wemps-msg-Ja_JP-2.1.0-0
    rpm -e wemps-msg-Ko_KR-2.1.0-0
    rpm -e wemps-msg-Pt_BR-2.1.0-0
    rpm -e wemps-msg-Zh_CN-2.1.0-0
    rpm -e wemps-msg-Zh_TW-2.1.0-0
    

    If there is a problem with package dependencies, you can use the following command to remove the packages

    rpm -e packagename --nodeps --justdb
    

    The nodeps option skips the dependency check. The justdb option updates only the package database, and not the file system. Using only the nodeps option can cause a failure in package removal if there is any mismatch in the dependent file system (files and directories).

  9. Remove WAS directories in the instance installed in the /opt/WebSphere/AppServer installation root. Do not remove installation root directories for products that you intend to keep.

    rm -rf /opt/WebSphere/AppServer/

  10. If you are certain that there is no embedded messaging data to preserve, execute...

    rm -fr /var/wemps /opt/wemps

    If you have other instances of WAS products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.

  11. Delete the IBM HTTP Server directory.

    rm -rf IBMHttpServer

  12. If you do not have IBM WebSphere MQ installed as a separate product on this machine, and if you do not have the embedded messaging server and client feature installed on this machine, type rm -fr /var/mqm /opt/mqm if you are certain that there is no embedded messaging data to preserve. If you have other instances of WAS products on the same machine, and if they use the embedded messaging feature, do not remove the embedded messaging packages or directories.

    If you installed IBM WebSphere MQ as a separate product on this host to use as the messaging provider, and if you do not want to continue using WebSphere MQ, you can uninstall the product as described in the WebSphere MQ information.

  13. Edit the vpd.properties file.

    Do not delete or rename the vpd.properties file because the InstallShield for MultiPlatforms (ISMP) program uses it for other products that it installs.

When the process completes, the product is completely uninstalled. You are now ready to reinstall.

 

RPM Examples

Display package names beginning with MQ, for the embedded messaging feature

==>rpm -qa | grep MQ
MQSeriesMsg_Zh_CN-5.3.0-1
MQSeriesMsg_Zh_TW-5.3.0-1
MQSeriesMsg_ko-5.3.0-1
MQSeriesClient-5.3.0-1
MQSeriesMsg_de-5.3.0-1
MQSeriesMsg_es-5.3.0-1
MQSeriesMsg_fr-5.3.0-1
WSBMQ1AA-5.0-0
WSBMQ2AA-5.0-0
WSBMQ3AA-5.0-0
MQSeriesMsg_it-5.3.0-1
MQSeriesMsg_ja-5.3.0-1
MQSeriesMsg_pt-5.3.0-1
MQSeriesSDK-5.3.0-1
MQSeriesJava-5.3.0-1
MQSeriesServer-5.3.0-1
MQSeriesRuntime-5.3.0-1

Display package names beginning with wemps, for the embedded messaging feature

==>rpm -qa | grep wemps
wemps-msg-De_DE-2.1.0-0
wemps-msg-Es_ES-2.1.0-0
wemps-msg-Fr_FR-2.1.0-0
wemps-msg-It_IT-2.1.0-0
wemps-msg-Ja_JP-2.1.0-0
wemps-msg-Ko_KR-2.1.0-0
wemps-msg-Pt_BR-2.1.0-0
wemps-msg-Zh_CN-2.1.0-0
wemps-msg-Zh_TW-2.1.0-0
wemps-runtime-2.1.0-0

Display package names beginning with WSB, for the base WAS product

==>rpm -qa | grep WSB
WSBSR1AA-5.0-0
WSBSR5AA-5.0-0
WSBSR6AA-5.0-0
WSBSM1AA-5.0-0
WSBAS1AA-5.0-0
WSBGK2AA-5.0-0
WSBCO1AA-5.0-0
WSBAC1AA-5.0-0
WSBAT1AA-5.0-0
WSBDT1AA-5.0-0
WSBAU1AA-5.0-0
WSBMQ1AA-5.0-0
WSBMQ2AA-5.0-0
WSBMQ3AA-5.0-0
WSBMS2AA-5.0-0
WSBMS4AA-5.0-0
WSBMS7AA-5.0-0
WSBES1AA-5.0-0
WSBES3AA-5.0-0
WSBIHAB-1.3-26
WSBPL1AA-5.0-0
WSBLA1AA-5.0-0
WSBJA1AA-5.0-0
WSBCO4AA-5.0-0
WSBCO5AA-5.0-0
WSBJD7AA-1.3-1
WSBJD5AA-1.3-1
WSBJD9AA-1.3-1