How to Uninstall a Specific Oracle Solaris Cluster Package
Perform this task to uninstall one or more individual Oracle Solaris Cluster software packages.
Example 7-1 Uninstalling the Oracle Solaris Cluster Manager Packages
The following example shows the removal from one cluster node of the Oracle Solaris Cluste rManager software packages, ha-cluster/system/manager
and ha-cluster/system/manager-wls
. Each package has an associated SMF service, system/cluster/manager
and system/cluster/manager-wls
, that is first disabled. The packages have a require dependency on the ha-cluster-full
group package.
Check for active SMF services.
phys-schost-1# svcs -a | grep manager
online 15:50:26 svc:/system/cluster/manager:default
online 15:50:26 svc:/system/cluster/manager-wls:default
Disable the manager SMF service and verify it is disabled.
phys-schost-1# svcadm disable svc:/system/cluster/manager:default phys-schost-1# svcs -a | grep manager disabled 15:53:33 svc:/system/cluster/manager:default online 15:50:26 svc:/system/cluster/manager-wls:default
Disable the manager-wls
SMF service and verify it is
disabled.
phys-schost-1# svcadm disable svc:/system/cluster/manager-wls:default phys-schost-1# svcs -a | grep manager disabled 15:53:33 svc:/system/cluster/manager:default disabled 15:56:43 svc:/system/cluster/manager-wls:default
Check for package dependencies.
phys-schost-1# pkg content -o type,pkg.name -t depend -a fmri=ha-cluster/system/manager '*' TYPE PKG.NAME require ha-cluster-full … phys-schost-1# pkg content -o type,pkg.name -t depend -a fmri=ha-cluster/system/managerwls '*' TYPE PKG.NAME require ha-cluster-full …
Uninstall the require dependency package.
phys-schost-1# pkg uninstall ha-cluster-full
Uninstall the Oracle Solaris Cluster Manager packages.
phys-schost-1# pkg uninstall ha-cluster/system/manager ha-cluster/system/manager-wls
Verify that the packages are no longer installed.
phys-schost# pkg list manager pkg list: no packages matching 'manager' installed phys-schost# pkg list manager-wls pkg list: no packages matching 'manager-wls' installed