pkgadd(1M) — ADMINISTRATOR COMMANDS
NAME
pkgadd − transfer software package to the system
SYNOPSIS
pkgadd [−d device] [−r response] [−n] [−a admin] [pkginst1 [pkginst2[ ...]]]
pkgadd −s spool [−d device] [pkginst1 [pkginst2[ ...]]]
DESCRIPTION
pkgadd transfers the contents of a software package from the distribution medium or directory to install it onto the system. Used without the −d option, pkgadd looks in the default spool directory for the package (var/spool/pkg). Used with the −s option, it reads the package to a spool directory instead of installing it.
−d Installs or copies a package from device. device can be a full path name to a directory or the identifiers for cartridge tape or removable disk (for example, /var/tmp, /dev/ctape1, or ctape1). It can also be the device alias. See putdev(1M) for information on device aliases.
−r Identifies a file or directory, response, which contains output from a previous pkgask session. This file supplies the interaction responses that would be requested by the package in interactive mode. response must be a full pathname. See “NOTES” below.
−n Installation occurs in non-interactive mode. The default mode is interactive.
−a Defines an installation administration file, admin, to be used in place of the default administration file. The token none overrides the use of any admin file, and thus forces interaction with the user. Unless a full path name is given, pkgadd looks in the /var/sadm/install/admin directory for the file. See admin(4) for more information.
pkginst Specifies the package instance or list of instances to be installed. The token all may be used to refer to all packages available on the source medium. The format pkginst.∗ can be used to indicate all instances of a package.
−s Reads the package into the directory spool instead of installing it.
When executed without options, pkgadd uses var/spool/pkg (the default spool directory).
EXIT CODES
The following are successful exit codes: 0No reboot is necessary.
10Reboot is necessary after installation of other packages.
20Reboot is necessary immediately. Exit codes other than those shown above indicate various errors.
NOTES
When transferring a package to a spool directory, the −r, −n, and −a options cannot be used.
The −r option can be used to indicate a directory name as well as a filename. The directory can contain numerous response files, each sharing the name of the package with which it should be associated. This would be used, for example, when adding multiple interactive packages with one invocation of pkgadd. Each package would need a response file. If you create response files with the same name as the package (i.e. package1 and package2), provide the name of the directory in which these files reside after the −r.
The -n option will cause the installation to halt if any interaction is needed to complete it.
SEE ALSO
pkgask(1M), pkgchk(1M), pkgmk(1), pkgparam(1), pkgproto(1), pkgrm(1M), pkgtrans(1), putdev(1M), removef(1M), admin(4), pkginfo(4).
— Essential Utilities