How to install Solaris 10 companion CD

 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:

  1. Solaris freeware from Sun website, or
  2. 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
Legal_Notice                README
LICENSE_NOTICE              Solaris_Software_Companion
# 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
mail=
conflict=nocheck
setuid=nocheck
action=nocheck
partial=nocheck
instance=overwrite
idepend=nocheck
rdepend=nocheck
space=check
# 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.

lofiadm man page is here, and pkgadd man page is here.



Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

younseoroh

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