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.

1.Use the following swreg command to unregister the depot:

$ swreg -u -l depot /my_depots/PHCO_27780_depot

======= 08/06/04 14:10:35 MDT BEGIN swreg SESSION

(non-interactive)

*Session started for user "root@my_system".

*Beginning Selection

*Targets: my_system

*Objects: /my_depots/PHCO_27780_depot

*Selection succeeded.

======= 08/06/04 14:10:36 MDT END swreg SESSION (non-interactive)

2.Remove the depot's root directory and contents: $ rm -r /my_depots/PHCO_27780_depot/

Installing patches from a depot

To install patches from a directory or tape depot, use the swinstall command.

For additional information about the swinstall command, see the swinstall(1M) manpage and the Software Distributor Administration Guide on the HP Business Support Center website at http://www.hp.com/go/sd-docs.

For more information about installing patches, see Chapter 2: “Quick start guide for patching HP-UX systems” (page 9).

When you run the swinstall command, the output tells you the success or failure of the command and how to get additional information. Prior to actually installing patches, you should run the swinstall command in preview mode by including the -pargument.

Removing a directory depot 77

Page 77
Image 77
HP UX Patch Management manual Removing a directory depot, Installing patches from a depot