Operating System - HP-UX
1834530 Members
3199 Online
110068 Solutions
New Discussion

Re: Backing out a patch(es)

 
ROSS HANSON
Regular Advisor

Backing out a patch(es)

If you load a patch and find out, a week later, that
the patch is bad... how do you back it out of your
system?
Ross Hanson
6 REPLIES 6
Christopher McCray_1
Honored Contributor

Re: Backing out a patch(es)

Hello,


You can use the swremove command and choose the one you need to get rid of.

Did you receive this notification from HP?? Normally they can tell you alternate patches, or if a new one was created, and in great detail.

Hope this helps
Chris
It wasn't me!!!!
Sanjay_6
Honored Contributor

Re: Backing out a patch(es)

Hi Ross,

you can use "swremove" to remove the patch.

Regds
Michael Tully
Honored Contributor

Re: Backing out a patch(es)

Hi,

Depending on the type of patch you could
use the 'swremove' program to do it. Open
the interactive session and highlight the
patch to be backed out and remove it.
Just a word of caution.... Before doing
any patch maintenance it is in your best
interests to make sure that you have at
least one ignite (make recovery) tape.
To create one
# make_tape_recovery -x inc_entire=vg00 -I -a -v /dev/rmt/0mn

What is the patch?

-Michael
Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: Backing out a patch(es)

Another option you can use is the non-interactive swremove method. Put your patch id in a file called "patches". You can have more than 1 patch entry in the file. Then run ..

# swremove -p -f patches

to preview and if ok run ..

# swremove -f patches
Darrell Allen
Honored Contributor

Re: Backing out a patch(es)

Hi Ross,

Please note that some patches will require a reboot when you remove them. Any PHKL patch is a kernel patch and will rebuild the kernel and thus require a reboot.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
A. Clay Stephenson
Acclaimed Contributor

Re: Backing out a patch(es)

Hi Ross:

Assuming that you did not turn off the option to save the old patches, then all you need to do is run swremove. This is one of the reasons it's nice to have a sandbox. You can test the patch long before you must install it in production. An old box bought on the used equipment market can pay for itself many times over.

If it ain't broke, I can fix that.