INSTALLING
SHELLS Bourne sh No No No No $ No .profile No C csh Yes Yes Yes/Yes !n hostname% !! .login .cshrc Korn ksh Yes Yes Yes/No rn $
Feature Aliases Command line editing History capability/editing History execution Prompt* Repeat last command Initialization file: - login - shell startup
.profile user defined
INSTALLATION Interactive: SUNInstall does not support copackaged software install, can use to upgrade Web Start supports copackaged software, cannot use to upgrade JumpStart cannot use to upgrade Custom JumpStart can use to upgrade 1. 2. Name Service Method – NIS or NIS+ has system config info Sysidcfg method – sysidcfg file contains config info
Automatic:
Preconfiguring System Configuration:
Network Installation:
1. 2.
Install server – has contents of Solaris 7 CD Boot server – for installs on clients on different subnet than install server
PACKAGES pkgadd [arg] package_name install a software package, default spool directory = /var/spool/pkg -d path identifies spool directory other than the default -s path spools package into a spool directory installs package SUNWast from cdrom spools SUNWast to /tmp from cdrom spools to default spool directory from cdrom
Examples: pkgadd –d /cdrom/cdrom0 SUNWast pkgadd –s /tmp –d /cdrom/cdrom0 SUNWast pkgadd –s spool –d /cdrom/cdrom0 SUNWast
pkginfo [package_name]
provides information on installed packages -l package_name view info on a particular package
Examples: pkginfo pkginfo SUNWast pkginfo –l SUNWast pkgrm package_name admintool
displays a list of installed packages views info on SUNWast package also views info on SUNWast package removes named packages, more than one can be listed GUI that can add, remove and obtain information on installed packages
PATCHES Identified by an 8-digit number, the first 6 digits identify the base patch and the last two are the revision. Because patches have no default spool directory, the full pathname of the patch must be provided. patchadd [args] patch_full_pathname installs patch, default backup directory is /var/sadm/pkg -d files are not backed up and patch cannot be removed -M directory install multiple patches from this directory -R client_root_image apply patch to diskless client -S OS_service apply patch to operating system service -C install_server_image apply patch to install server configuration -p lists installed patches (can include with –R, -S or –C to show those) -B directory changes the default backup directory from /var/sadm/pkg
Examples: patchadd /var/spool/patch/107588-01 installs patch patchadd –d /var/spool/patch/107588-01 installs but makes no backup, cannot remove patch patchadd –R /export/root/client /var/spool/patch/107588-01 patch to diskless client’s root image patchadd –S Solaris_7x86 /var/spool/patch/107588-01 applies to x86 Solaris 7 image named Solaris_7x86 patchadd –M /var/spool/patch 106542-05 106794-01 applies multiple patches from specified directory patchadd –B /var/spool/backup /var/spool/patch/107588-01 uses different backup directory for install FAILURE: patchadd –p showrev –p patchadd fails if any of the following occur: A package being patched is not installed or only partially installed. The patch requires another patch that is not installed. The patch is not compatible with another patch already installed. The current version or a higher version of the patch is already installed. The architecture of the patch and the system do not match
Display a list of installed patches Display a list of installed patches
pkgparam package_name PATCHLIST
Displays patches applied to a particular package.
patchrm [args] patch_name
Removes patch, returns system to the state it was before patch was installed -B directory identifies backup directory if different from default -R client_root_image removes patch from diskless client -S OS_service removes patch from operating system service -C install_server_image removes patch from install server configuration
Examples: patchrm 106961-01 patchrm –R /export/root/client5 106961-01 patchrm –B /var/spool/backup 107588-01 FAILURE: -
removes patch removes patch from bootable root image of diskless client removes patch, identifies backup directory other than default
patchrm fails if any of the following occur: The patch is required by another patch. The patch is obsoleted by a later patch. The patch was installed using patchadd –d which makes no backup.