SUMMARY Re: unique patch-ID's?

From: Timo Aaltonen (tjaalton@cc.hut.fi)
Date: Tue Sep 10 2002 - 16:30:45 EDT


On Tue, 10 Sep 2002, Timo Aaltonen wrote:

> Hi
>
> Is there a way to delete CSP/ERP's and _only_ those, because if I write
> a cool script to delete those, some of the release patches get also
> deleted because the patch-ID's aren't unique... (which, IMHO is pretty
> stupid). Dupatch takes those ID's as 0414 etc, so there is no way of
> telling dupatch to delete only patches, that have a 'C' in their names.
>
> for instance:
>
> replicant log 11 # setld -i |grep -i osfpat|grep 537
> OSFPAT00053700520 installed Patch: Security (SSRT1-40U,
> SSRT1-41U, SSRT1-42U, SSRT1-48U)(Security Related Patches)
> OSFPATC0053700520 installed Patch: Fix for SSRT2191, quot
> (Security Related Patches)
>
> dupatch -delete ..... -patch 537 , would delete both patches.. which is
> hardly what I'd want.
>
> Does anyone have a solution to this, or should dupatch be fixed?

Thanks, John Jorgensen, Yaacov Fenster and Bob Vickers for your answers.

  It seems that the documentation is not up to date.. The patch-ID's are
unique, if you realize that in batch mode the patch-ID should use the
notation Cxxxx.yy, not plain xxxx.yy.

something like:

"setld -i | grep OSFPATC | grep -v not | sed -e 's/OSFPATC0/C/' | sed -e \
's/[0-9][0-9]520.*//' | gsed -e ':a;N;$!ba;s/\n/ /g'"

should do the trick in getting the ID's on one line in 5.1A (easy to put
in the dupatch-datafile)...

so, at least the man-page of dupatch should be updated, and possibly also
the manual at
http://www.tru64unix.compaq.com/docs/patch/install/HTML/TITLE.HTM

the latter should contain instructions using dupatch not only
interactively, but also in batch mode (Hompaq, you listening?-) )

t:T
_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX, GSM +358-40-5549 618



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:52 EDT