How to uninstall WebSphere Application Server ND v9 and IBM Java SDK v8 dependent packages

How to uninstall WebSphere Application Server ND v9 and IBM Java SDK v8 dependent packages


Purpose – To uninstall WebSphere Application Server ND v9 and IBM Java SDK v8 packages.

The intention of this article is to show the dependency between IBM Java SDK and WAS ND v9 packages as they are available as separate packages from WAS v9 versions
Pre-requisites
RHEL or CentOS 7 with WAS ND v9 installed
Before uninstall the packages, make sure that you have stopped all the processes i.e Managed Application Servers, Nodeagents, Deployment Manager and any other WebSphere related processes that are running.
Procedure

Step1: List the currently installed packages with version details
[root@desktop1 tools]# ./imcl listInstalledPackages -long
/opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.8.5000.20160506_1125 : IBM® Installation Manager : 1.8.5
/opt/IBM/WebSphere9 : com.ibm.java.jdk.v8_8.0.5000.20170906_1259 : IBM SDK, Java Technology Edition, Version 8 : 8.0.5.0
/opt/IBM/WebSphere9 : com.ibm.websphere.ND.v90_9.0.4.20170523_1327 : IBM WebSphere Application Server Network Deployment  : 9.0.0.4
Step2: Uninstall WAS ND v9 package
[root@desktop1 tools]# ./imcl uninstall com.ibm.websphere.ND.v90_9.0.4.20170523_1327
ERROR: The following errors were generated while uninstalling.
  CRIMA1059E ERROR: Cannot uninstall IBM WebSphere Application Server Network Deployment  because IBM SDK, Java Technology Edition, Version 8 requires components from it.
    ERROR: In root installation context:
      ERROR: Installation context “com.ibm.java8.installcontext” was not resolved
Failed to uninstall com.ibm.websphere.ND.v90_9.0.4.20170523_1327 from the /opt/IBM/WebSphere9 directory.
Step3: Uninstall IBM Java SDK v8 package
[root@desktop1 tools]# ./imcl uninstall com.ibm.java.jdk.v8_8.0.5000.20170906_1259
CRIMA1272E ERROR: The following errors were generated while uninstalling.
  CRIMA1272E ERROR: The IBM WebSphere Application Server Network Deployment  package requires the IBM SDK, Java Technology Edition, Version 8 package. These packages must be uninstalled together.
  Explanation: These packages cannot be uninstalled separately.
  User Action: Either uninstall both packages, or do not uninstall the specified package.
Failed to uninstall com.ibm.java.jdk.v8_8.0.5000.20170906_1259 from the /opt/IBM/WebSphere9 directory.
Step4: Uninstall both IBM Java SDK v8 and WAS ND v9 packages together
[root@desktop1 tools]# ./imcl uninstall com.ibm.java.jdk.v8_8.0.5000.20170906_1259 com.ibm.websphere.ND.v90_9.0.4.20170523_1327
Uninstalled com.ibm.java.jdk.v8_8.0.5000.20170906_1259 from the /opt/IBM/WebSphere9 directory.
Uninstalled com.ibm.websphere.ND.v90_9.0.4.20170523_1327 from the /opt/IBM/WebSphere9 directory.

Hope you enjoyed reading this article. Thank you.