Operating System - HP-UX
1821871 Members
3196 Online
109638 Solutions
New Discussion юеВ

Re: Deleting patches from /var/adm/sw/save

 
SOLVED
Go to solution
Ramprasath_1
Occasional Advisor

Deleting patches from /var/adm/sw/save

Hi all,

Pls suggest me whether i can delete patches under /var/adm/sw/save. It is occupying lot of space. Old patches and superseeded patches for the same is stored here. I want to know if i delete the old patch, will it affect? What steps need to be carry out?

Thanks in advance
Ramprasath G
9 REPLIES 9
Wouter Jagers
Honored Contributor
Solution

Re: Deleting patches from /var/adm/sw/save

Hi there,

Check out the 'cleanup' command, it is designed to commit patches which have been superseded a number of times.

You can manually commit paches using the option '-x patch_commit=true' to swmodify.

Hope that helps.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
AwadheshPandey
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

http://www.faqs.org/faqs/hp/hpux-faq/section-161.html

Regards,

Awadhesh
It's kind of fun to do the impossible
Torsten.
Acclaimed Contributor

Re: Deleting patches from /var/adm/sw/save

Never delete anything in /var/adm/sw!

This will corrupt your software database.

See "man cleanup" instead.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Geoff Wild
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

cleanup -c 1

or cleanup -c 2

man cleanup for more valuable info :)

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.
Tim Nelson
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

As mentioned cleanup does a great job managing this. I always run after a patch load to cleanup -2 revs.

I have also successfully used a separate filesystem for this in the past.

HGN
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

Hi

Please assign points to posting , you have assigned 9 out of the 18 feed back

Rgds

HGN
Bob E Campbell
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

Anytime you are about to commit old patches or install new ones I strongly recommend that you create an IUX recovery image. There is no such things as too many ways to remove a committed patch...

If you have spindles (or SAN) handy, a DRD clone would work as well. I just love the warm fuzzy of a recovery tape in a different building though.

Bob
whiteknight
Honored Contributor

Re: Deleting patches from /var/adm/sw/save

Ram,

cleanup Command
The cleanup utility is used ...
├в ┬в to remove any patches for earlier releases from the Installed Product Database (IPD) after updating to a newer version of HP-UX.
├в ┬в to commit patches across the entire system, i.e to remove patch rollbacks.
├в ┬в to remove patches from a software depot if they have been superseded by patches also available in the same depot.
cleanup logs all information to /var/adm/cleanup.log.
Refer to the cleanup manual page for details.

example: cleanup -c 2

WK
Problem never ends, you must know how to fix it
yulianto piyut
Valued Contributor

Re: Deleting patches from /var/adm/sw/save

be carefull to delete patches under /var/adm/sw/save. Patches have been deleted can't be uninstall.
the command to delete old patches that superseded by other pathces is "cleanup". do man cleanup.
# cleanup -c 1 or
# cleanup -c 2
you will be verify what patches that will be deleted.

-yut-