安装完了Solaris10操作系统,如何自动安装所有软件包?
光盘名称:sol-10-u7-companion-ga.iso
1.挂载
# lofiadm -a /gmm/soft/sol-10-u7-companion-ga.iso /dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /mnt/iso/
2.安装一个软件包
# cd /mnt/iso/Solaris_Software_Companion/Solaris_sparc/Packages
# pkgadd -d . SFWnmap
3.安装目录下所有软件包(无交互方式)
# vi /gmm/pkgadd.conf
basedir=default
mail=
runlevel=quit
conflict=nocheck
setuid=nocheck
action=nocheck
partial=nocheck
instance=unique
idepend=nocheck
rdepend=nocheck
space=quit
# cd /mnt/iso/Solaris_Software_Companion/Solaris_sparc/Packages
# for i in `ls` ; do pkgadd -n -a /gmm/pkgadd.conf -d . $i; done
阅读(1152) | 评论(0) | 转发(0) |