1763725 Members
2588 Online
108915 Solutions
New Discussion юеВ

Re: Removing old patches

 
SOLVED
Go to solution
Etienne Holm
Frequent Advisor

Removing old patches

I have done a upgrade of the patches of a system
what do I do to remove all the old patches.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Removing old patches

man cleanup


"cleanup -c 1"


Pete


Pete
Ken Hubnik_2
Honored Contributor

Re: Removing old patches

I always do a preview first

cleanup -p -c 1

Then after looking at what will be removed.

cleanup -c 1
James R. Ferguson
Acclaimed Contributor

Re: Removing old patches

Hi:

# cleanup -c 1

...will remove superseded patches but leave one level "back" available for rollback.

'cleanup' is the easiest and most appropriate way to regain space in '/var/adm/sw'. Never remove files manually from this directory.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor
Solution

Re: Removing old patches

Once a quarter I run the cleanup -1 command.

Understand that this commits old patches to the system and prevents you from rolling back more than one patch.

Example(fake numbers)

I install

PHCO_25100

It is superseded by

PHCO_26171

I install it

PHCO_27101

I install it.

run cleanup -1

I can back out

PHCO_27101 and

PHCO_26171 will be there but I can't go back to PHCO_25100

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
twang
Honored Contributor

Re: Removing old patches

To add to replies above,
- before you do anything, create an Ignite backup of your system.
- use the "-p" option the first time to preview what cleanup is going to do.
- only commit patches that have been superceded 2 or more times by using "-c 2".
eg. # cleanup -p -c 2

Caesar_3
Esteemed Contributor

Re: Removing old patches

Hello!

cleanup -c 1
will remove all the upgrated patches
in the system.

Caesar