Removes a package or set from the system.
pkgrm [ -n] [ -a Admin] [ Pkginst1 [ Pkginst2 [. . .]]]
pkgrm removes a previously installed or partially installed package/set from the system. A package is a collection of related files and executables that can be independently installed. A set is made up of a special-purpose package, referred to as a Set Installation Package (SIP), and a collection of one or more packages that are members of the set.
pkgrm checks that all packages listed on the command line are on the system. If any of the packages listed does not exist, no changes are made to the system, that is, none of the listed packages are removed.
A check is also made to determine if any other packages depend on the one being removed. The action taken if a dependency exists is defined in the Admin file (see the -a flag, below).
The default state for the command is interactive mode, meaning that prompt messages are given during processing to allow the administrator to confirm the actions being taken. Non-interactive mode can be requested with the -n flag.
The -s flag can be used to specify the directory from which spooled packages should be removed.
This command returns the following exit values:
0 | Successful completion of script. |
1 | Fatal error. Installation process is terminated at this point. |
99 | Internal error. |
/usr/lib/locale/locale/LC_MESSAGES/uxpkg | language-specific message file |
The pkgadd command, pkgask command, pkgchk command, pkginfo command, pkgparam command, pkgtranscommand.
The pkginfo file format, pkgmap file format.