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

ProcedureHow to Add a Package to the Global Zone and All Non-Global Zones

Do not use pkgadd option -G in this procedure.

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

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.

  2. While in the global zone, 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:


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


      global# pkgadd -d disk1/image package_name
      

      where disk1 is the location where the package was copied.