WBEMfor Solaris on Sun Developer's Guide

Uninstalling the Sun WBEM SDK

When you want to uninstall the Sun WBEM SDK from your computer, you remove the packages. When you remove the Sun WBEM SDK packages, not all files that make up your total installation are removed. If Solaris WBEM Services is installed, none of its associated packages are removed. For information about removing Solaris WBEM Services, see Chapter 10, Installing Solaris WBEM Services.

After you remove both the Sun WBEM SDK and Solaris WBEM Services, the LDAP schema and data files remain installed. You can remove these files, and the subdirectories that contain them, from the path /opt/SUNWconn/ldap. However, if you remove the LDAP data, you may encounter errors in other applications that require the data. Also, if you remove the LDAP data, you will need to re-install it if you decide to re-install the Sun WBEM SDK or Solaris WBEM Services at a later date.

How to Uninstall the Sun WBEM SDK
  1. Become root on your system by typing the following command:

    % su
    

  2. Type the root password at the Password prompt.

  3. Type the following command at the system prompt to remove a package:

    # pkgrm package_name 
    

    where package_name is replaced by the name of the package that you want to remove.

  4. Type y when you are prompted with the question: "Do you want to remove this package?"

    You can remove the following packages in any order:

    • SUNWwbdev

    • SUNWwbdoc

    Be sure to remove the SUNWwbapi package last because all other packages rely on it.

    When a package has been removed successfully, the following message is displayed.

    Removal of package_name was successful
    

  5. Type the pkgrm command at the system prompt for each package you want to remove.

  6. Type exit to exit root and return to your system prompt when you have finished removing packages.