Simplify zone administration using the global zone: Packages



Following up an earlier post, this post covers Solaris packages. I will reiterate that from an administration perspective, zones provide a unique balance between application isolation and shared administration when compared with other virtualization technologies. From a zones perspective, Solaris packages and patches are handled similarly. You have options. A package can be installed in the global zone only, in a non-global (aka, local zone) only or, as in the example below, in all zones in one fell swoop.

root@globalzone:/> # Loopback mount the Solaris 10 Companion CD ISO file
root@globalzone:/> # which contains precompiled and pre-packaged open source software
root@globalzone:/> lofiadm -a /path/to/sol-10-u2-companion-ga.iso
/dev/lofi/1
root@globalzone:/> mount -F hsfs -o ro /dev/lofi/1 /mnt
root@globalzone:/> cd /mnt/Solaris_Software_Companion/Solaris_i386/Packages
root@globalzone:/mnt/Solaris_Software_Companion/Solaris_i386/Packages> /bin/yes | pkgadd -d . SFWexpct
## Verifying package  dependencies in zone 
## Verifying package  dependencies in zone 
## Verifying package  dependencies in zone 
## Verifying package  dependencies in zone 
## Booting non-running zone  into administrative state
## Verifying package  dependencies in zone 
## Restoring state of globalzone zone 
## Booting non-running zone  into administrative state
## Verifying package  dependencies in zone 
## Restoring state of globalzone zone 

Dependency checking issues for package  on zone .

Do you want to continue with the installation of  [y,n,?]
The package  contains scripts which will be executed on
zones  with
super-user permission during the process of installing this package.

Do you want to continue with the installation of  [y,n,?]
Processing package instance  from 
## Installing package  in globalzone zone

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24

        Written by: Don Libes, NIST, 3/23/93

        Design and implementation of this program was paid for by U.S. tax
        dollars.  Therefore it is public domain.  However, the author and NIST
        would appreciate credit if this program or parts of it are used.

YOU MUST OBSERVE ANY AUTHORS' CONDITIONS WITH RESPECT TO
INDIVIDUAL COMPONENTS PROVIDED WITHIN THIS CODE.  SUPPORT
FOR THE TECHNOLOGIES AND DOCUMENTATION IS NOT PROVIDED
BY SUN MICROSYSTEMS, INC.

THE TECHNOLOGIES AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT TECHNICAL
SUPPORT OR WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

Using  as the package base directory.
## Processing package information.
## Processing system information.
   6 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of  [y,n,?]
Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.
1960 blocks

Installation of  was successful.
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.
1960 blocks

Installation of  on zone  was successful.
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.
1960 blocks

Installation of  on zone  was successful.
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.
1960 blocks

Installation of  on zone  was successful.
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.
1960 blocks

Installation of  on zone  was successful.
## Booting non-running zone  into administrative state
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.
   52 package pathnames are already properly installed.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.

Installation of  on zone  was successful.
## Restoring state of globalzone zone 
## Booting non-running zone  into administrative state
## Installing package  in zone 

expect - Programmed dialogue with other interactive programs(i386) 5.39,REV=2006.03.26.16.24
Using  as the package base directory.
## Processing package information.
## Processing system information.
   52 package pathnames are already properly installed.

Installing expect - Programmed dialogue with other interactive programs as 

## Installing part 1 of 1.

Installation of  on zone  was successful.
## Restoring state of globalzone zone 
root@globalzone:/mnt/Solaris_Software_Companion/Solaris_i386/Packages> cd /
root@globalzone:/> umount /mnt
root@globalzone:/> lofiadm -d /dev/lofi/1
root@globalzone:/>

Solaris package management resources:

Comments:

Post a Comment:
Comments are closed for this entry.
About

John Clingan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today