1753701 Members
4885 Online
108799 Solutions
New Discussion юеВ

patch-roll back.

 
fizan
Super Advisor

patch-roll back.

How to roll back the patch?

experts can you guide me with the steps to roll-back?


Thanks
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: patch-roll back.

Hi:

To roll-back a patch, use 'swremove '.

This will remove the patch and restore the previous fileset state assuming that you didn't commit the patch or use '-x patch_save_files=false' when you originally installed the patch. In these cases, patch removal can't occur because the rollback information isn't available.

Regards!

...JRF...
R.K. #
Honored Contributor

Re: patch-roll back.

Hi Fizan,

As said non-commited can be removed by using:
# swremove

By default during patch installation, SD-UX makes rollback copies of all
files under "/var/adm/sw/save" directory structure.

To remove committed patch say PHCO_20765:

1. Ensure that patch say PHCO_22044 is installed. If not, install it.

2. Restore /var/adm/sw/save/PHCO_20765 from backup.

3. Run 'cleanup -s' to modify the patch state so that it will be
modified to either "superseded" or "applied".
Don't fix what ain't broke
fizan
Super Advisor

Re: patch-roll back.

To remove committed patch say PHCO_20765:

1. Ensure that patch say PHCO_22044 is installed. If not, install it.

2. Restore /var/adm/sw/save/PHCO_20765 from backup.

i ting you have typed wrong patch no,

can u explain me
Dennis Handly
Acclaimed Contributor

Re: patch-roll back.

>>1. Ensure that patch say PHCO_22044 is installed. If not, install it.
>I think you have typed wrong patch #

PHCO_22044 is for 11.00 HP-UX Patch Tools so is only valid for 11.00. Same with PHCO_20765.

I assume these IDs are only examples and PHCO_22044 wouldn't be needed for later OS versions. Note: PHCO_27779 is the last patch in the family:
http://www.itrc.hp.com/service/patch/patchTree.do?patchid=PHCO_22044
Steven E. Protter
Exalted Contributor

Re: patch-roll back.

Shalom,

If the swremove of the patch fails, read the message carefully. Do not use any options to force removal of the patch.

The previous posts list the patch you may need to install and any dependencies. It is important not to ignore dependencies.

If the patch you want to remove has other patches dependent on it, they will have to come out as well.

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