|PKGRM(8)||Maintenance Commands and Procedures||PKGRM(8)|
pkgrm [-nv] [-a admin] [ [-A | -M] -R root_path] [-V fs_file] [pkginst... | -Y category[,category...]]
pkgrm -s spool [pkginst... | -Y category[,category...]]
pkgrm will remove a previously installed or partially installed package from the system. A check is made to determine if any other packages depend on the one being removed. If a dependency exists, the action taken is defined in the admin file.
The default state for the command is in 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 option.
The -s option can be used to specify the directory from which spooled packages should be removed.
Certain unbundled and third-party packages are no longer entirely compatible with the latest version of pkgrm. These packages require user interaction throughout the removal and not just at the very beginning.
To remove these older packages (released prior to Solaris 2.4), set the following environment variable:NONABI_SCRIPTS=TRUE pkgrm permits keyboard interaction throughout the removal as long as this environment variable is set.
The following options are supported:
Use of this option requires that at least one package instance be named upon invocation of the command. Certain conditions must exist for a package to be removed non-interactively or a non-restrictive admin file needs to be used.
The following operand is supported:
The asterisk character (*) is a special character to some shells and may need to be escaped. In the C-Shell, "*" must be surrounded by single quotes (') or preceded by a backslash (\).
The following example removes all instances of SUNWjunk from client1:
example% pkgrm -R /export/root/client1 SUNWjunk*
Note the caveat on the use of the -R option in the description of that option, above.
The following exit values are returned:
Package commands are largefile(7)-aware. They handle files larger than 2 GB in the same way they handle smaller files. In their current implementations, pkgadd(8), pkgtrans(1) and other package commands can process a datastream of up to 4 GB.
|October 30, 2007||OmniOS|