How to install Solaris 10 companion CD
By younseoroh on Mar 07, 2009
I was working on a Solaris 10 x64 update 6 system, and needed a X11vnc application. I know of Sun Freeware site or Blastwave site to grab individual packages, but wanted to try to install the whole Companion CD myself. It involved mounting iso file using lofiadm, which was new to me. Also, use of administration file with pkgadd was new to learn.
Here is the procedure.
Download iso image of the Solaris Companion CD from these sites:
- Solaris freeware from Sun website, or
- Sun Freeware website, and pick processor/OS on the right hand side of the front page.
Unlike O/S installation CD/DVD, companion CD is a collection of Solaris packages to be installed. Assuming you want to install the packages from the CD on a Solaris machine (Solaris 9, 10, Sparc and x86/x64), login to the system as root.
Unzip the iso file and mount it:
# cd <download path>
# unzip sol-10-u6-companion-ga-iso.zip
# lofiadm -a `pwd`/sol-10-u6-companion-ga.iso /dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /mnt
/mnt directory contains the collection of packages under Solaris_Software_Companion, and includes Solaris_i386, Solaris_Sparc and Source directories. Under Solaris_i386 and Solaris_Sparc directories, you can find Packages directory containing more than 100 packages.
# cd /mnt
# ls Solaris_Software_Companion
Solaris_i386 Solaris_sparc Source
For installing individual packages, cd into the packages directory and run this:
# cd Solaris_Software_Companion/Solaris_i386/Packages
# pkgadd -d `pwd` <package name>
For installing all the packages, create an install administration file such as:
# cat /var/tmp/admin
# cd <Packages directory>
# pkgadd -a /var/tmp/admin -d `pwd`
These steps will install packages under /opt/sfw/bin directory. More details can be found in the README file under the mounted CD file directory. Or user can refer to the Companion CD page of Sun Freeware website.