HP-UX HB v13.00 Ch-05 - SD-UX

HP-UX Handbook Rev 13.00 Page 42 (of 49)
Chapter 05 Software Distributor (SD-UX)
October 29, 2013
To delete existing patch rollbacks in order to save disk space you can use the cleanup(1M)
command:
for 10.X
# cleanup -F
for 11.X
To remove (commit) patches that have been superseeded at least two times do:
# cleanup c 2
### Cleanup program started at 02/20/02 13:15:43
Commit patches superseded at least 2 time(s) on 'grcdg319'.
Obtaining superseded patch information...done.
The following patches superseded at least 2 time(s) can be committed:
Superseded # Times Superseded Disk Space in /var/adm/sw/save Superseded By
========== ================== ============================== =============
PHCO_23427 2 23646208 bytes PHCO_24400
PHCO_23772 3 23476224 bytes PHCO_23427
PHKL_23313 2 66560 bytes PHKL_25165
PHKL_23445 2 133120 bytes PHKL_24566
PHKL_23609 2 229376 bytes PHKL_24550
PHKL_23642 2 131072 bytes PHKL_24046
WARNING: When a patch is committed, the files saved to /var/adm/sw/save
during the installation of the patch are removed. If
these saved files are not present, then the patch cannot
be removed from the system via swremove(1M).
If these files in /var/adm/sw/save must be removed, HP
recommends that the /var/adm/sw/save directory first be
backed up. If it should become necessary to remove the
patch in the future, the files must be recovered from the
backup prior to removing the patch.
If you have not already created a backup of /var/adm/sw/save,
you may wish to do so before proceeding with the patch
commit operation.
Would you still like to commit these patches? y
Committing patches superseded at least 2 time(s) ...done.
All information has been logged to /var/adm/cleanup.log.
### Cleanup program completed at 02/20/02 13:15:43
NOTE: cleanup is just a frontend to swmodify:
# cleanup -c 1
would do the same as
# swmodify -x patch_commit=true \*\.*