Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 5.12.2.4 How do I get rid of old 10.x patches or superseded patches?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Houses ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.12.2.3 How can I tell what patches are in the kernel?
Next Document: 5.12.2.5 How can I install multiple patches, without having to reboot more than once?
See reader questions & answers on this topic! - Help others by sharing your knowledge
Updated: 05/06/03

DO NOT USE SWREMOVE!  swremove will check the scripts for the patch you
ask it to remove, and happily remove whatever file you tell it to, and
replace it with an earlier version of the patch from /var/adm/sw/patch/
(if one exists).

NOTE:  If you have already removed previous OS version patches with
swremove, you will either 1) need to restore from backup, or 2) reload
the OS.

First download and install one of the following patches, which contain
the HP-UX patch tools:

  o 10.x:  PHCO_20824  ('cleanup' only)
  o 11.00: PHCO_27779  ('cleanup', 'check_patches', & 'show_patches')
  o 11.11: PHCO_27780  ('cleanup', 'check_patches', & 'show_patches')

The patch tools come with 11.00, but you should still install patch
PHCO_24347 to fix several bugs that exist in it.

The 'cleanup' tool is used to commit patches while preserving a set level
of rollback, remove HP-UX 10.x patch information from the IPD, and prune
superseded patches from a depot.  The 'check_patches' utility checks for
partially installed (split) patches, incorrect patch_state, patch
attribute corruption, and objects within an archive library.  The
'show_patches' tool can display the set of active or superseded patches
on a system.

To remove old 10.x patches from /var/adm/sw/patch/, use the command:

  # cleanup -i

Committing a patch causes rollback files associated with that patch to be
deleted from /var/adm/sw/save/.

To commit all patches that have been superseded at least twice, use
the command:

  # cleanup -c 2

On 11.x, to commit a patch that has not been superseded, use the command:

  # swmodify -x patch_commit=true <patch-name(s)>

In case you were wondering, 'cleanup -c 0' does not work.

WARNING: Once the above swmodify command has been executed, you CANNOT
         roll back (remove) the patch unless you remove the associated
         base software that the patch modified.  For this reason, I do
         not recommend doing it unless you desperately need to free up
         space under /var, and you have exhausted all other means of
         doing so.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.12.2.3 How can I tell what patches are in the kernel?
Next Document: 5.12.2.5 How can I install multiple patches, without having to reboot more than once?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM