1831503 Members
3670 Online
110025 Solutions
New Discussion

Re: patch remove

 
subhashni
Regular Advisor

patch remove

Hi
I installed patch on 11.00 using swinstall.
But now i would like to remove that.How should i?
unix4me
11 REPLIES 11
A. Clay Stephenson
Acclaimed Contributor

Re: patch remove

If you did not turn off the save the current software option in swinstall which is the default behavior then all you need to do is a swremove and the previous version will be restored.

Man swremove for details. You can use the interactive version of swremove if you like.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: patch remove

Hi Subhashini,

Start 'swremove', then select the patch you need to remove and remove it using the action menu.

HTH,
Shiju
Life is a promise, fulfill it!
Denver Osborn
Honored Contributor

Re: patch remove

What patch is it that you are removing?

-denver
subhashni
Regular Advisor

Re: patch remove

after removing a patch shoul i do anything else.Because it seems still my /usr is has occupied more space.
Thanks
unix4me
Helen French
Honored Contributor

Re: patch remove

Hi,

From the man pages :

"When removing installed software, swremove also unconfigures the software before it is removed. The software is not unconfigured when removed from an alternate root directory since it was not configured during installation. When removing available software (within a depot), swremove also does not perform the unconfiguration task". So for a normal swremove, you don't need to do anything more.

Did you remove the patch for more free space ? The default patch depot is in /var/adm/sw. So if u remove a patch from there, then how will it affect /usr ? Can you tell the patch name which you removed ?

However, if you want to check the free space, use 'du -k' command, instead of bdf.

HTH,
Shiju

Life is a promise, fulfill it!
subhashni
Regular Advisor

Re: patch remove

yes i removed a patch quality packQPK1100.
Thanks
unix4me
Helen French
Honored Contributor

Re: patch remove

Hi,

The patch you removed is the latest HP's patch bundle. You will have problem in future, if you remove these patches.

For getting free space on file system, you can work on other possibilities:

1) Add a new disk to the VG and extend the LV.
2) Remove unwanted log files or move it.
3) Find out for any new files in the file system ( man find)
4) Find the bigger files in the directory using find command.

Removing the patch bundle for freeing space is not a good idea.

HTH,
Shiju
Life is a promise, fulfill it!
subhashni
Regular Advisor

Re: patch remove

Hi shiju,
I'm not removing patch to create free space.I
wanted to install a new QPK1100 sep.So that i have removed the old one which is QPK1100dec 2000.But after removing the patch i got a feeling that still some thing is there in /usr like patches for roll back.How to remove that?.How can i use swmodify for a bundle ?
Please help me.
Thanks.
unix4me
Darrell Allen
Honored Contributor

Re: patch remove

Hi,

You should not remove patches to install newer patches. There is a concept of superceeding patches. Newer ones take precedent of older ones.

By default, swinstall saves copies of files that are overlaid by patches. This is so that you can roll-back to previous versions should you have to remove a patch later. These previous versions are stored in /var/adm/sw/save. Do not remove these files manually. Use the cleanup command. There is an option (-c perhaps, I'm not on an HPUX system right now) that allows you to specify how many times a patch is superceeded before committing the older patch and removing the previous files that patch overwrote. I suggest you specify 2 for that option.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Michael Tully
Honored Contributor

Re: patch remove

Hi,

You don't need to remove an old patch bundle(s) to install new ones. What is generally done is to run the 'cleanup' command which removes the patch bundle before the last one superceded and redundant, and then when you install the newest bundle it makes the previous one as a fallback.

It is always a good ideas to keep the previous
bundle set, just in case.

As always I recommend that you make at least one make_tape_recovery tape before doing any patch changes, particularly ones related to kernels.

-Michael
Anyone for a Mutiny ?
Helen French
Honored Contributor

Re: patch remove

Hi Subhashini,

Like Darrell and Mike said, you don't need to remove the old patch bundle. The new releases completely overwrite the old bundles.Carefully read the README.txt document for instructions for installation.

Also the cleanup ( see man cleanup) command can be used to remove old patches from the system. It is NOT recommended to remove those patches manually.

Normally system won't store any patches under /usr directory. It will be under /var/adm/sw. Make sure that you are not doing anything which will harm the system.

HTH,
Shiju
Life is a promise, fulfill it!