1831929 Members
3677 Online
110031 Solutions
New Discussion

Committing patches

 
Angela Swyers_1
Frequent Advisor

Committing patches

Does anyone have the command line that is needed to commit multiple patches at once? I don't want to have to use the swmodify command for patch.
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: Committing patches

Hi,

I use the command "cleanup" to commmit the patches.

cleanup -c 3 will commit patches that have been superceded thrice.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Angela Swyers_1
Frequent Advisor

Re: Committing patches

But will this cleanup the space in /var?
Sridhar Bhaskarla
Honored Contributor

Re: Committing patches

Yep. It will remove the old patches that are no longer needed due to the commit process from /var/adm/sw/save directory.

It is a good practice to backup this directory before you clean them up.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Committing patches

The only downside when you get that space back on /var is that if for some reason you need to remove a patch the patch it superseded is not there.

This could lead to some issues you would not associate with removing a patch.

So if you need to remove a patch after running cleanup you may want to find the successor patch or the one that supersedes the one you are removing and get it right into the system.

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
Geoff Wild
Honored Contributor

Re: Committing patches

cleanup -c is your answer - however - if you have the disk space available - just grow /var or put /var/adm/sw/save in it's own filesystem.

I tend to commit patches myself with cleanup -c 2 as where I work we use a conservative patching schedule - patches we apply have been out for 6 months (unless security related) before we install them.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.