Name
pkgrm
Synopsis
/usr/sbin/pkgrm [options
] [instances
] /usr/sbin/pkgrm -s spool [instances
]
pkgrm removes installed packages. If some other package depends upon a package being removed, the action taken will be what’s defined in the admin file.
Options
-
-a
adminfile
Use adminfile as the removal administration file, instead of the system default file (/var/sadm/install/admin/default). This file specifies policies for installation and removal in terms of user interaction, how many instances of a package may be installed, and so on.
-
-A
Absolutely remove the package’s files from the client’s filesystem. However, if the file is shared with other packages, the default is not to remove it.
-
-M
Do not use
$root_path/etc/vfstab
for determining a client’s mount points. Rather, assume that the mount points are correct on the server.-
-n
Do a non-interactive removal. If a need for interaction arises, pkgrm exits.
-
-R
root-path
Remove files from under root-path. This is used on server systems when removing packages for clients.
-
-s
spooldir
Remove the package from spooldir instead of from the system.
-
-v
Verbose: trace execution of all scripts run by pkgrm.
-
-V
vfstab-file
Use vfstab-file instead of
$root_path/etc/vfstab
when removing packages. This is primarily useful on a server removing software for a client, where the client’s /etc/vfstab file is not available or is incorrect.
Instances
The instances parameter specifies which instances of the named packages should be installed.
pkg-name
,pkg-name
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.