Software Distributor Administration Guide for HP-UX 11i

Managing Patches
Patch Management Tasks and Examples
Chapter 5 179
Listing Available Patch Categories
You can use the -l category specification to list the categories of
available patches for patches that are defined with category objects.
To list the categories defined for patches in the depot mounted at /CD:
swlist -d -l category @ /CD
critical_patch Patches that fix system
hangsdefect_repair Provide defect repair
hardware_enablement Patches enabling new hardware
To list a particular attribute of a category object identified by the tag
critical_patch:
swlist -a description -l category critical_patch
Using swlist to Resolve Manual Dependencies Some patches
cannot automatically resolve their own dependencies. HP-UX patch
creation tools mark such patches with a generated tag called
manual_dependencies. This tag can help you find patches with
unresolved dependencies, for example:
swlist -l product *,c=manual_dependencies
This command lists all patches on your system that need manual
resolution of dependencies. To identify the dependencies, list the readme
attribute for each patch. For example, you could redirect the output of
the above command to a file, then use the file to list the readme
information for each patch:
swlist -l product -a readme *,c=manual_dependencies
Patch Removal, Rollback, and Committal
To permit future rollback of a patch, use the patch_save_files option.
This option (set to true by default) automatically saves any files replaced
by a patch. You can then restore the original files if you later decide to
remove the patch.
For example,
swinstall -s sw_server -x patch_save_files=true
Rollback files are saved to the directory:
/var/adm/sw/save/new_patch_name/fileset_name