[pca] Back out
Rajiv Gunja
opn.src.rocks at gmail.com
Mon Jul 21 13:15:46 CEST 2008
Hi Martin,
Hope you had a wonderful vacation. Yes, I agree with you that asking pca to
uninstall patches would make it complicated. I have written couple of
wrappers to take care of the uninstall. I tested it on Solaris 10 and 8 for
recommended and Security patches (about 74 patches) and it works well.
When I download patches for a Live OS or an ABE, I usually create a report
of which I create a patch_order file, for those Engineer who like to use LU
for patching than the scripts (wrappers) I create.
A simple
tail -r patch_order > uninst_patch_order
will give me the patches to uninstall in the reserve order. Once this is
created, I run a "for" loop and feed each patch number to patchrm with -R
option just in case.
Thanks
-GGR
=============================================
Snippet:
=============================================
for EACHPATCH in `cat uninst_patch_order`
do
patchrm -R $ROOTDIR $EACHPATCH | tee -a $LOGDIR/uninstallpatch.log
done
=============================================
2008/7/21 Martin Paul <martin at par.univie.ac.at>:
> Rajiv Gunja wrote:
>
>> Yes, I do agree that most of us rarely backout patches in any kind of
>> environment. But I have couple of servers which does not have extra disks
>> for me to use LU Patching or use an Alt-Boot. So was wondering if there
>> was
>> an option to backout patches using pca.
>>
>
> There is no such option for pca. I don't think it would make a lot of
> sense, as you always would feed a list of patch-IDs, and the only thing for
> pca to do would be to call patchrm. Something like "remove all missingrs
> patches" doesn't sound too useful.
>
> As for the correct order for patch removal, use "ls -lt /var/sadm/patch" to
> get the order in which the patches were installed.
>
> Martin.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.univie.ac.at/mailman/private/pca/attachments/20080721/5446c7fb/attachment.html
More information about the pca
mailing list