* unique patch-ID's?
@ 2002-09-10 4:34 Timo Aaltonen
2002-09-10 20:30 ` SUMMARY " Timo Aaltonen
0 siblings, 1 reply; 3+ messages in thread
From: Timo Aaltonen @ 2002-09-10 4:34 UTC (permalink / raw)
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?
t:T
_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX, GSM +358-40-5549 618
^ permalink raw reply [flat|nested] 3+ messages in thread
* SUMMARY Re: unique patch-ID's?
2002-09-10 4:34 unique patch-ID's? Timo Aaltonen
@ 2002-09-10 20:30 ` Timo Aaltonen
2002-09-11 11:56 ` UPDATE " Timo Aaltonen
0 siblings, 1 reply; 3+ messages in thread
From: Timo Aaltonen @ 2002-09-10 20:30 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* UPDATE SUMMARY Re: unique patch-ID's?
2002-09-10 20:30 ` SUMMARY " Timo Aaltonen
@ 2002-09-11 11:56 ` Timo Aaltonen
0 siblings, 0 replies; 3+ messages in thread
From: Timo Aaltonen @ 2002-09-11 11:56 UTC (permalink / raw)
> 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?-) )
It seems that even if I specify the 'C' in patch-ID's to be removed, it
still deletes release-patches:
/var/adm/patch/log/session.log.x:
Wed Sep 11 13:59:34 EEST 2002
DUPATCH_REV>36-01
CUR_DIR>/
CMDLINE>/tmp/root/patch_kit/dupatch -delete -data
/root/PATCHES_TO_BE_REMOVED
DATAFILE># generated by patchme
># for Customer Specific Patch-removal
>name = Mr A. B. Force
>note = automagic
>product = TRU64_UNIX_V5.1A
>patch = C437 C446 C482 C483 C484 C493 C494 C495 C496 C497 C499 C527
C536 C537 C538 C541 C542
C543 C544 C547 C549
>proceed
.
.
*** You have selected 24 patches ***
-------------------------------------------------------------------------
- Tru64_UNIX_V5.1A / Security Related Patches:
Patch 00446.00 - Security (SSRT1-40U, SSRT1-41U, SSRT1-42U,
SSRT1-45U)
can not be deleted unless the following patches are also selected or
deleted first:
- Tru64_UNIX_V5.1A / Security Related Patches:
Patch 00716.00 - Security (SSRT1-40U, SSRT1-41U, SSRT1-42U,
SSRT1-45U)
-------------------------------------------------------------------------
-------------------------------------------------------------------------
- Tru64_UNIX_V5.1A / Security Related Patches:
Patch 00527.00 - Security (SSRT0779U)
can not be deleted unless the following patches are also selected or
deleted first:
- Tru64_UNIX_V5.1A / Security Related Patches:
Patch 00525.00 - Security (SSRT0779U)
-------------------------------------------------------------------------
* The following 2 patch(es) failed in pre-deletion check:
- Tru64_UNIX_V5.1A / Security Related Patches:
Patch 00446.00 - Security (SSRT1-40U, SSRT1-41U, SSRT1-42U,
SSRT1-45U)
Patch 00527.00 - Security (SSRT0779U)
Checking patch dependency once more...
(depending upon the number of patches you select, this may take awhile)
*** You have selected 22 patches ***
.
.
etc.
t:T
_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX, GSM +358-40-5549 618
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-11 11:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10 4:34 unique patch-ID's? Timo Aaltonen
2002-09-10 20:30 ` SUMMARY " Timo Aaltonen
2002-09-11 11:56 ` UPDATE " Timo Aaltonen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox