System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

ProcedureHow to Add a Package to a Specified Non-Global Zone Only

To add a package to a specified non-global zone only, the SUNW_PKG_ALLZONES package parameter must be set to false. Do not use the pkgadd option -G in this procedure or the operation fails.

You must be the zone administrator in the non-global zone to perform this procedure.

  1. Log in to the non-global zone as the zone administrator.

  2. While in the non-global zone, my-zone in this procedure, run the pkgadd -d command followed by the location of the package and then the package name.

    • If installing the package from a CD-ROM, type:


      my-zone# pkgadd -d /cdrom/cdrom0/directory package_name
      
    • If installing the package from a directory to which it has been copied, type:


      my-zone# pkgadd -d disk1/image package_name
      

      where disk1 is the location where the package was copied.