Solaris

2006/1/20 01:51 PM 更新

パッケージの追加

Solaris9を「core system」でインストールした場合の全インストールパッケージを確認。
# ls /var/sadm/pkg
AMImega SUNWaudf SUNWesu SUNWpl5u SUNWtnamd
CADP160 SUNWbip SUNWeuluf SUNWpl5v SUNWtnamr
CPQncr SUNWbsr SUNWftpr SUNWpsdcr SUNWtnetc
CPQsmii SUNWbsu SUNWftpu SUNWpsdir SUNWtnetd
HPFC SUNWcadp SUNWinamd SUNWrcmdc SUNWtnetr
NCRos86r SUNWcar SUNWjfpr SUNWrcmdr SUNWudf
SK98sol SUNWcor SUNWkey SUNWrcmds SUNWudfr
SKfp SUNWcpmp SUNWkvm SUNWrmodr SUNWusb
SUNWadmr SUNWcqhpc SUNWlibms SUNWrmodu SUNWxwssu
SUNWadp SUNWcsd SUNWloc SUNWroute SYMhisl
SUNWale SUNWcsl SUNWmlx SUNWsolnm
SUNWatfsr SUNWcsr SUNWos86r SUNWswmt
SUNWatfsu SUNWcsu SUNWpe10 SUNWtftp
SUNWauda SUNWdfb SUNWpiclr SUNWtftpr
SUNWaudd SUNWinleu SUNWpiclu SUNWtleu

このままの状態ではCコンパイラやmanコマンド、ライブラリ関係などが全くインストールされていないので、最初にこれらのパッケージをインストールする必要がある。

必要なパッケージをSolaris9のCD-ROMからインストール。
  ・SUNWadmc(1of2)
  ・SUNWadmfw(1of2)
  ・SUNWdoc(1of2)
  ・SUNWlibC(1of2)
  ・SUNWscpu(1of2)
  ・SUNWtoo(1of2)

  ・SUNWarc(2of2)
  ・SUNWbtool(2of2)
  ・SUNWhea(2of2)
  ・SUNWlibm(2of2)
  ・SUNWman(2of2)
  ・SUNWsprot(2of2)

CD-ROM(1of2)をマウントしpkgaddコマンドでインストール。
# ls -al / |grep cdrom
drwxr-xr-x 2 root sys 512 5月 5 01:15 cdrom

# mount -F hsfs /dev/dsk/c1t0d0p0 /cdrom
# cd /cdrom/Solaris_9/Product
# pkgadd -d `pwd` SUNWadmc SUNWadmfw SUNWdoc SUNWlibC SUNWscpu SUNWtoo

Processing package instance from


System administration core libraries
(i386) 11.8,REV=2002.10.31.17.09
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## Verifying package dependencies.
WARNING:
The package "Solaris Volume Manager, (Usr)"
is a prerequisite package and should be installed.

Do you want to continue with the installation of
[y,n,?] y

〜省略〜

Installing Programming Tools as

## Installing part 1 of 1.
1454 blocks
## Executing postinstall script.

Installation of was successful.

# cd
# umount /cdrom
CD-ROMを1of2から2of2に入れ替えマウント。
# mount -F hsfs /dev/dsk/c1t0d0p0 /cdrom
# cd /cdrom/Solaris_9/Product
# pkgadd -d `pwd` SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWman SUNWsprot

Processing package instance from


Archive Libraries
(i386) 11.9.0,REV=2002.11.04.02.51
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using as the package base directory.
## Processing package information.
## Processing system information.
8 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,?] y

〜省略〜

Installing Solaris Bundled tools as

## Installing part 1 of 1.
2654 blocks

Installation of was successful.

# cd
# umount /cdrom