Sunday, July 19, 2009

Uninstall Solaris Patch Cluster

We have been doing some patch cluster installs recently in our group and I installed the wrong patch cluster on the server (installed the June patch cluster). The patch cluster that was supposed to be installed on the server was the April one.

Unlike Windows server were it will be relatively easier to rollback an update it's quite tricky for Solaris or ist it?

How did I back-out/uninstall the patch cluster, well first you have to look at the patch_order. Normal patching will go through this list from top to bottom, since we have to "unistall" the patch cluster we need to go through the list in reverse.

Now there's two way to do this the hard way or the easy way :).

The hard way would be to run patchrm on each of the files...with 100+ files highly unlike hehe.

The easy way is to loop through the list in reverse and do patchrm via script. ( now were talkking).

Here's the impromptu script I used to backout the patch cluster:

for i in `tail -r patch_order | awk '{print $1}'`
do
patchrm $i
done

Nothing fancy, just put it in a file, make it executable and you're good to go.




Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: