[csw-users] installing packages in global zone, not in local?

Bruno Bonfils asyd at asyd.net
Fri Nov 24 17:16:35 CET 2006


On ven 24 novembre, Gérard Henry wrote:
> hello all,
> 
> i have several zones on a machine. In global zone, when i install a
> package, it is installed in others zones
> is there a switch as:
> pkg-get -G -i evince
> to install it in one zone?
> 
> thanks in advance

>From man pkgadd :


     -G              Add package(s) in  the  current  zone  only.
                     When used in the global zone, the package is
                     added to the global zone  only  and  is  not
                     propagated  to  any  existing  or yet-to-be-
                     created non-global  zone.  When  used  in  a
                     non-global zone, the package(s) are added to
                     the non-global zone only.

% grep pkgadd /opt/csw/bin/pkg-get 

[..]
                pkgadd $PKGADDFLAGS$PKGASK -d $tmpdir $tmppkg
[..]

% grep PKGADDFLAGS /opt/csw/etc/pkg-get.conf
#PKGADDFLAGS=-G

# Solaris 10: If you wish to limit pkg-get to installing packages
# ONLY to the global zone, then uncomment this line
#PKGADDFLAGS=-G

Best regards.


-- 
http://asyd.net/home/   - Home Page
http://guses.org/home/  - French Speaking (Open)Solaris User Group



More information about the users mailing list