Application Packaging Developer's Guide

ProcedureHow to Install a Package on a Standalone System or Server

  1. Build your package.

    See Building a Package, if needed.

  2. Log in to the system as superuser.

  3. 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.


Example 4–1 Installing Packages on Standalones and Servers

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.


See Also

If you are ready to go to the next task, see How to Verify the Integrity of a Package.