See Building a Package, if needed.
Log in to the system as superuser.
Add the software package to the system.
# pkgadd -d device-name [pkg-abbrev...] |
-d device-name |
Specifies the location of the package. Note that device-name can be a full directory path name or the identifiers for a tape, floppy disk, or removable disk. |
pkg-abbrev |
Is the name of one or more packages (separated by spaces) to be added. If omitted, pkgadd installs all available packages. |
If you are ready to go to the next task, see How to Verify the Integrity of Your Package.
To install a software package named pkgA from a tape device named /dev/rmt/0, you would enter the following command:
# pkgadd -d /dev/rmt/0 pkgA |
You can also install multiple packages at the same time, as long as you separate package names with a space, as follows:
# pkgadd -d /dev/rmt/0 pkgA pkgB pkgC |
If you do not name the device on which the package resides, the command checks the default spool directory (/var/spool/pkg). If the package is not there, the installation fails.