$ whatis pkgrm

pkgrm - remove a package from the system


Examples:

	I no longer need the SMClgcc346 in this host, so I am going to remove it.
It is important to not remove any package you need for your systems, please make sure you are absolutely sure that you like to remove any package from your system, before issing the pkgrm command.

# pkginfo -l | grep -i gcc
   PKGINST:  SMClgcc346
      NAME:  libgcc
   PKGINST:  SUNWgccruntime
      NAME:  GCC Runtime libraries
      DESC:  GCC Runtime - Shared libraries used by gcc and other gnu components

	I remove the Package SMCgcc346 using the command below:
# pkgrm SMClgcc346

The following package is currently installed:
   SMClgcc346  libgcc
               (x86) 3.4.6

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance 
## Verifying package  dependencies in global zone
## Processing package information.
## Removing pathnames in class 
/usr/local/lib/libstdc++.so.6.0.3
/usr/local/lib/libstdc++.so.6
/usr/local/lib/libgcc_s.so.1
/usr/local/lib/libgcc_s.so
/usr/local/lib/libg2c.so.0.0.0
/usr/local/lib/libg2c.so.0
/usr/local/lib/libg2c.so
/usr/local/lib 
## Updating system information.

Removal of  was successful.

	I just removed the SMNClgcc346, and now there is no gcc binary  in /usr/local/bin anymore.
# ls -l /usr/local/bin/gcc
ls: cannot access /usr/local/bin/gcc: No such file or directory
#

Please click on " man pkgrm. " to see the Manual Page for this command.