1. installer -shell script that runs with
text/GUI interfaces
installeer is located on solaris cds/dvds
task: access intalller script for software
companion dvd
#ssh 192.168.1.1
#cd /export/home/
#ls -ltr
#cd solariscompanion
#cd solaris_x86
# ls
#file installer
Note: installer script facilitis installation of
programs that were not selected during the
installation
setup NFS on installation server to share DVD
contents:
share -F nfs -o ro,anon=0
/etc/home/solariscompanion
#hostname
#ifconfig -a
#nano /etc/dfs/dfstab
#exportfs -a
mount remote server's NFs share-point for
companion DVD tree
#ping linuxcbtsun2
#mkdir /export/home/solariscompanion
#mount -F nfs
linuxcbtsun2:/export/home/solariscompanion
/export/home/solariscompanion
#cd solaris_x86
#ls -ltr
installer
#./installer
#cd solaris_x86
# ls
# ls -ltr
#pwd
#echo $PATH
Excute 'installer' shell script using the
following ' ./installer'
#./installer
popup a GUI
Note: you may only install packges from same
installation category chosed during initial
installation of the OS
###prodreg -application to manage(add/remove)
programs on solaris box###
Note: prodreg also permits launching 'instakk'
scripts from ancillary solaris
cd/dvd/nfs/etc.locations
#whick bluefish
###shell-based package management tools###
pkginfo|add|rm|chk
##pkginfo##
1. pkginfo -dumps to STDOUT(screen/terminal) all
installed packages
pkginfo returns -category , package
name,description
2. pkginfo -l [package_name] -detailed package
listing
pkginfo -l SUNWblue -return ful information
about bluefish
3. pkginfo -x -returns an extracted list of
packages,,architecture,version
4. pkginfo -q -queriers for package and returns
exit status
#pkginfo -q
#echo $?
#echo $? SFWemacs
5. pkginfo -i|-p -returns fully/partially
installed
###pkgchk###
integrity checking tool
1. pkgchk -v SFWblue -checks/lists files
included with SFWblue package
pkgchk -v SFWblue.SFWjoe
2. pkgchk -lp /opt/sfw/bin/bluefish -retuen the
package that 'bluefish' belongs to
3. pkgchk -ap /opt/sfw/bin/bluefish -audits the
permissions on the file 'bluefish'
#ls -l /opt/sfw/bin/bluefish
#chmod 666 /opt/sfw/bin/bluefish
#echo $?
#pkgchk -ap /opt/sfw/bin/bluefish
4. pkgchk -fp /opt/sfw/bin/bluefish -restorese
permission to values in database
5. pkgchk -cp /opt/sfw/bin/bluefish -audit
contents base on sum information
6.pkgchk -q -returns useable exit status
#mv bluefish bulefish.original
#pkgchk -cp /opt/sfw/bin/bluefish
#rm -rf bluefish
###pkgadd###
common solaris package online repositories
1.pkgadd -d package_name -installs from current
directory or spool directory(var/spool/pkg)
pkgadd -d nan...
pkginfo -x|grep nano
pkgchk -lp /usr/local/bin/nano
#pkginfo -x| grep nano
#pkgchk -v SMCnano
Note:decompress downloaded packages prior to
installation
2. pkgadd -this will install programs in the
spool directory
3. pkgadd -d nan...|curl... -s /var/spool/pkg
pkgadd -d nano
#ls -l /var/spool/pkg
#pkgadd -d curl* -s /var/spool/pkg
#ls -l /var/spool/pkg/
#pkgadd -d nano* -s /var/spool/pkg
# pkginfo -x|grep nano
#pkginfo -l SFWcurl
#pkgadd
#pkginfo -x|grep nano
#pkgchk -v SMCnano
#pkginfo -x|grep -i curl
2 packages had been installed
#pkgrm SFWcurl
#pkgrm SMCnano
#which curl
#cd /var/spool/pkg
#ls -ltr
SMCcurl
SMCnano
4. pkgadd -d URL i.e pkgadd -d
http://location/package_name.pkg
Note: when installing via HTTP, packaged Must be
in packages stream form, use 'pkgtrans' to
transform packaged to package stream format
#prodreg
#pkg
#wget
ftp://ftp:sunfreeware.com/pub/freeware/intel/10/
curl-7.12.2-sol10-intel.local.gz
#gunzip curl***.gz
#ls -ltr curl*
#file curl-*
#pkginfo -x | grep -i nano
###pkgrm###
1.pkgrm package_name
pkgrm SMCnano#
#pkgchk -v SCnano
set up package at spool location
#