Sun Microsystems Logo
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Example--Checking the Contents of Installed Software Packages

The following example shows how to check the contents of a package.

# pkgchk -c SUNWbash

If no errors occur, the system prompt is returned. Otherwise, the pkgck command reports the error.

Example--Checking the File Attributes of Installed Software Packages

The following example shows how to check the file attributes of a package.

# pkgchk -a SUNWbash

If no errors occur, the system prompt is returned. Otherwise, the pkgck command reports the error.

Example--Checking Software Packages Installed in a Spool Directory

The following example shows how to check a software package that was copied to a spool directory (/export/install/packages).

# pkgchk -d /export/install/packages
## checking spooled package <SUNWadmap>
## checking spooled package <SUNWadmfw>
## checking spooled package <SUNWadmc>
## checking spooled package <SUNWsadml>


Note - The checks made on a spooled package are limited because not all information can be audited until a package is installed.


Removing Software Packages

Use the associated tool that you used to add or install a software package to remove or uninstall a software package. For example, if you used the Web Start installer to install software, use the Web Start uninstaller to uninstall software.


Caution! Caution - Do not use the rm command to remove software packages.


ProcedureHow to Remove Software Packages (pkgrm)

  1. Become superuser or assume an equivalent role.

  2. Remove an installed package.

    # pkgrm pkgid ...

    pkgid identifies the name of one or more packages, separated by spaces, to be removed. If omitted, pkgrm removes all available packages.

Example--Removing Software Packages

This example shows how to remove a package.

# pkgrm SUNWctu

The following package is currently installed:
   SUNWctu         Netra ct usr/platform links (64-bit)
                   (sparc.sun4u) 11.9.0,REV=2001.07.24.15.53

Do you want to remove this package? y

## Removing installed package instance <SUNWctu>
## Verifying package dependencies.
## Processing package information.
## Removing pathnames in class <none>
.
.
.

Example--Removing a Spooled Software Package

This example shows how to remove a spooled package.

# pkgrm -s /export/pkg SUNWaudh
The following package is currently spooled:
   SUNWaudh        Audio Header Files
                   (sparc) 11.10.0,REV=2003.08.08.00.03
Do you want to remove this package? y
Removing spooled package instance <SUNWaudh>

Adding and Removing Software Packages With Admintool (Task Map)

The following task map describes the software management tasks that you can do with Admintool.

Task

Description

For Instructions

Add software packages with Admintool

You can view or add software packages.

How to Add Software Packages With Admintool 

Remove software packages with Admintool

You can view or remove software packages.

How to Remove Software Packages With Admintool 

The Solaris operating system includes Admintool, which is a graphical user interface for performing several administration tasks, including adding and removing software packages. Specifically, you can use Admintool to do the following:

  • Add software packages to a local system

  • Remove software packages from a local system

  • View software already installed on the local system

  • Customize software packages to be installed

  • Specify an alternate installation directory for a software package

ProcedureHow to Add Software Packages With Admintool

  1. Become superuser.

    Unless you are a member of the sysadmin group (group 14), you must become superuser or assume an equivalent role to add or remove software packages with Admintool.

  2. Load a Solaris 9 Software CD or DVD into the drive.

    Volume Manager automatically mounts the CD.

  3. Start Admintool.

    # admintool &

    The Users window is displayed.

  4. Choose Software from the Browse menu.

    The Software window is displayed.

  5. Choose Add from the Edit menu.

    The Set Source Media window might appear. If so, specify the path to the installation media and click OK. The default path is a mounted Solaris CD.

    The Add Software window is displayed.

    Simple screen capture titled Admintool: Add Software. Shows Software and Description panes. Shows the Set Source Media button and five other buttons.
  6. Select the software you want to install on the local system.

    In the Software portion of the window, click the check boxes that correspond to the software you want to install.

  7. Click Add.

    A Command Tool window appears for each package being installed, displaying the installation output.

    The Software window is refreshed to display the packages just added.

Previous Previous     Contents     Index     Next Next