cleanup(1M) cleanup(1M)
NAME [Toc] [Back]
cleanup - HP-UX patch cleanup utility
SYNOPSIS [Toc] [Back]
cleanup [-n|-p] -c <number>
cleanup [-n|-p] -d <depot> [-o 10|11] [-e true|false]
cleanup [-n|-p] -i
cleanup [-n|-p] -s
DESCRIPTION [Toc] [Back]
The cleanup command provides functions useful when dealing with HP-UX
patches on HP-UX.
The cleanup command logs all information to /var/adm/cleanup.log.
Options [Toc] [Back]
cleanup recognizes the following options:
-p Preview the cleanup task but do not actually perform
the requested action.
-n Notify the user of cleanup tasks and request
confirmation before performing the requested action.
-c <number>
Commit patches superseded at least <number> times.
This option is a front-end to the 'patch_commit'
option of swmodify(1M) that provides an easier
interface to commit multiple patches at once.
-d Remove patches in the specified software depot that
have been superseded by patches also available from
the depot.
-o <10|11>
Specifies whether the software depot contains patches
for HP-UX 10.X or 11.X releases. This option is only
valid with the -d option. If the -o option is not
specified, it defaults to HP-UX 11.X patches.
-e <true|false>
Specifies whether patches in the software depot that
contain a corequisite or prerequsite attribute
specifying one of the superseded patches as a
dependency should also be removed. This option is
valid only with the -d option. If the -e option is
not specified, it defaults to true.
-i Remove HP-UX 10.X patches that remain in the Installed
Product Database after an upgrade to HP-UX 11.X.
These patches are removed from the IPD so that they
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: Oct 2004
cleanup(1M) cleanup(1M)
are no longer displayed in the output of the
swlist(1M) command. The HP-UX 10.X patch files are
also removed from /var/adm/sw/patch.
-s Correct the patch_state attribute for HP-UX 11.X
patches.
RECOMMENDATIONS [Toc] [Back]
The cleanup -i command should be executed after updating to HP-UX 11.X
from HP-UX 10.20. It is not necessary to execute cleanup -i after
updating from one version of HP-UX 11.X software to another because
SD-UX will properly remove 11.X patch information from the IPD in
these situations.
The cleanup -d command should be executed whenever patches are added
to a software depot. It is not a requirement that superseded 11.X
patches be removed from a software depot, but it is a recommendation
to conserve disk space and to avoid confusion. If superseded patches
exist in the same depot as patches that supersede them, SD-UX on HP-UX
11.X will handle the situation properly.
The cleanup -c command can be executed to commit all patches that have
been superseded at least the specified number of times. The only
benefit from committing patches is that disk space will be recovered
in the /var/adm/sw/save directory.
The cleanup -s command can be executed to insure that the
'patch_state' attribute of all patch filesets is set correctly. There
are several known situations where the 'patch_state' attribute will be
set incorrectly. This command can be run at any time, but will be
most useful after a system has been installed using Ignite-UX.
WARNING [Toc] [Back]
Extreme care should be used when committing patches. Once a patch has
been committed, it cannot be removed from the system. Patches should
only be committed when you are satisfied with their behavior.
Recovering disk space should not be the only factor considered when
committing patches.
AUTHOR [Toc] [Back]
cleanup was developed by HP.
SEE ALSO [Toc] [Back]
check_patches(1M), sd(4), show_patches(1), swlist(1M), swmodify(1M),
swremove(1M), sysdiff(1)
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: Oct 2004 [ Back ] |