Patch Management User Guide for HP-UX 11.x Systems (5900-3011, April 2013)

Table Of Contents
removes superseded patches; the output states PHCO_24630 superseded by
PHCO_27780.
$ /usr/sbin/cleanup -p -d /my_depots/patch_depot
### Cleanup program started at 05/04/04 07:48:27
Preview mode enabled. No modifications will be made.
Cleanup of depot '/my_depots/patch_depot'.
Obtaining the list of patches in the depot:
/my_depots/patch_depot ...done.
Obtaining the list of superseded 11.X patches in the depot:
/my_depots/patch_depot ...The following superseded patches exist in the depot:
====================================================
PHCO_24630 superseded by PHCO_27780
All information has been logged to /var/adm/cleanup.log.
### Cleanup program completed at 05/04/04 07:48:27
Run the cleanup command:
$ /usr/sbin/cleanup -d /my_depots/patch_depot
### Cleanup program started at 05/04/04 07:50:39
Cleanup of depot '/my_depots/patch_depot'.
Obtaining the list of patches in the depot:
/my_depots/patch_depot ...done.
Obtaining the list of superseded 11.X patches in the depot:
/my_depots/patch_depot ...The following superseded patches
exist in the depot:
====================================================
PHCO_24630 superseded by PHCO_27780
Please be patient; this may take several minutes.
Removing superseded 11.X patches from depot:
/my_depots/patch_depot ...done.
The superseded 11.X patches have been removed from the depot:
/my_depots/patch_depot.
All information has been logged to /var/adm/cleanup.log.
### Cleanup program completed at 05/04/04 07:50:39
Use the swlist command to show the contents of depot /my_depots/patch_depot. The
depot now contains only one patch: PHCO_27780
$ swlist -l product @ /my_depots/patch_depot
# Initializing...
# Contacting target "my_system"...
#
# Target: my_system:/my_depots/patch_depot
#
PHCO_27780 1.0 HP-UX Patch Tools
Removing a directory depot
The method of depot removal described here is a two-step process. First, ensure that the depot is
unregistered by using the swreg command. Second, remove the depot's root directory.
The following example shows how to remove directory depot /my_depots/PHCO_27780_depot
on local system my_system.
Removing a directory depot 79