Application Packaging Developer's Guide

How to Add a Package to a Diskless or AutoClient System's Root File System

  1. Build your package.

    See "Building a Package", if needed.

  2. Log in to the server as superuser.

  3. Add a software package to the client system's root file system.

    server# pkgadd -d device-name -R rootpath [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.

    -R rootpath

    Specifies the location of the client system's root (/) file system on the server.


    Is the name of one or more packages (separated by spaces) to be added. If omitted, pkgadd installs all available packages.

Where to Go Next

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

Example--Installing a Package to a Diskless Client's Root File System

The following example shows a command to install the SUNWadmr (software to support system and network administration) package from a server onto a diskless client's root file system. In this case, the diskless client's root file system is /export/root/client-1. This example assumes the SUNWadmr package is available from a mounted SPARC 2.x Solaris CD (/cdrom/cdrom0/s0/Solaris_2.7).

server# pkgadd -d /cdrom/cdrom0/s0/Solaris_2.7 -R 
/export/root/client-1 SUNWadmr
Installation of <SUNWadmr> complete.