Always use the pkgrm command to remove installed packages. Do not use the rm command, which will corrupt the system's record-keeping of installed packages.
Remove an installed package.
# pkgrm pkgid ... |
pkgid |
(Optional) Is the name of one or more packages (separated by spaces). If omitted, pkgrm removes all available packages. |
Remove a package from a spool directory with the pkgrm -s command.
# pkgrm -s spooldir pkgid ... |
-s spooldir |
Specifies the name of the spool directory where the package was spooled. |
pkgid |
(Optional) Is the name of one or more packages (separated by spaces). If no pkgid is supplied, pkgrm prompts the user to remove each package listed in the spool directory. If omitted, pkgrm removes all available packages. |