Package and Patch Management

To list the files in a installed package

 # pkgchk -v <package_name>
           OR
 # grep <package_name> /var/sadm/install/contents

To list the files in a non-installed packagege file

 # pkgchk -vd <device_name> <package_name>

To install a package

 # pkgadd -d <source_dir> package_name

Patch Management

To list the installed pathches

 # showrev -p 
     OR
 # patchadd -p

To install a patch

 # patchadd Patch_DIR/PATCH_ID

To install a patch unconditionay

 # patchadd -u Patch_DIR/PATCH_ID

To install Multiple patches

 # patchadd -M <patch dir> <1st_patch-ID> <2nd_patch_ID> etc..

Some patches installations may give warnings/errors:

  • "return code 8" means that the patch in question cannot be applied because the relevant Solaris modules are not installed. This error can be ignored.
  • "return code 2" indicates patches are already installed. This error can be ignored.
  • "return code 25" means a patches requires another patch that is not yet installed. Try re-installing the bundle when finished, it may be a problem with the order of the installation of patches.
  • Other errors should be investigated. Check the patch installation log:
  more /var/sadm/install_data/Solaris_*Recommended_log