Julien Etienne wrote:
> I am new to OpenSolaris (new to Solaris too). I have been looking around
> all the FAQ and I can't find a way to install a package that was not
> installed using the "core" package set.
>
> In fact I am missing "gzip" and I don't know how I can get it either from
> the install CD (I use Solaris Express b77), or from a package repository
> on the net if it exists. If possible I would like to stick with an
> official gzip package.
>
> I already tried mounting the CD, but I couldn't find the package files...
You can find the package files with all the associated metadata
in /path/to/cdrom/Solaris_11/Product.
Generally, you'll see /path/to/cdrom as
/media/SOL_11_X86 or /media/SOL_11_SPARC
The gzip binary is part of the SUNWgzip packge, so once you
have located the directory SUNWgzip, you can run
pkgadd -d /path/to/directory SUNWgzip
for example,
pkgadd -d /media/SOL_11_X86/Solaris_11/Product SUNWgzip
What we deliver on the installation media is packages
that are in filesystem format rather than "package datastream"
format. Pakage datastream format is kinda similar to RPM
or DEB in that all you need is contained inside one file.
The filesystem format has
packagename/
pkginfo
pkgmap
install/{scripts}
reloc/{zero-length files in filesystem order}
archive/{actual archive file}.{gz|bz2}
So for SUNWgzip, you would see something similar to
this output (where I've mounted the ISO as /mnt):
farnarkle:Product $ pwd
/mnt/Solaris_11/Product
farnarkle:Product $ find SUNWgzip
SUNWgzip
SUNWgzip/archive
SUNWgzip/archive/none.bz2
SUNWgzip/install
SUNWgzip/install/copyright
SUNWgzip/install/depend
SUNWgzip/install/i.none
SUNWgzip/pkginfo
SUNWgzip/pkgmap
SUNWgzip/reloc
The binary/binaries are physically located inside
SUNWgzip/archive/none.bz2, and the rest is metadata.
James C. McPherson
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog