Solaris 8 (Intel Platform Edition) Installation Guide

To Remove Packages With pkgrm

  1. Log in to the installed or updated system and become superuser:


    # su
    
  2. Remove one or more packages from the system:


    # /usr/sbin/pkgrm pkgid
    

    Where pkgid is the name of the software package you want to remove from the installed system. For example, SUNWaudio.

  3. At each prompt, type y, n, or q to specify that you want to remove the package, not remove the package, or quit.

  4. When you're done, use the pkgchk(1M) command to verify that the package was removed correctly:


    # /usr/sbin/pkgchk -v pkgid
    

    If the package was not removed correctly, pkgchk returns a warning message.

Example: Removing Software From a System

The following example shows how to use pkgrm to remove the SUNWaudio package from a system.


# /usr/sbin/pkgrm SUNWaudio
The following package is currently installed:
   SUNWaudio       Audio applications
                   (i386) 3.6.20,REV=1.2000.11.7

Do you want to remove this package? y
.
.
.
Removal of <SUNWaudio> was successful.
# pkgchk -v SUNWaudio
WARNING: no pathnames were associated with <SUNWaudio>
#