Jeff Blaine | 4 Mar 08:24 2008
Picon

Why try to install patches that are already applied?

Hi all,

When applying a lot of patches (606 in fact), this eats up a
lot of time.  Why is PCA trying to do anything here when it
shows '01 = 01' ?

=========================================================================
116247 01 = 01 RS- 999 SunOS 5.9: audit_warn Patch

Downloading 116247-01 (398/606)
Trying http://sunsolve.sun.com/ (1/6)
Done

Installing 116247-01 (398/606)
Unzipping patch
Running patchadd

Checking installed patches...
Patch 116247-01 has already been applied.
See patchadd(1M) for instructions.

Patchadd is terminating.

Failed (exit code 2)

Martin Paul | 4 Mar 09:41 2008
Picon
Picon

Re: Why try to install patches that are already applied?

Jeff Blaine wrote:
> When applying a lot of patches (606 in fact), this eats up a
> lot of time.  Why is PCA trying to do anything here when it
> shows '01 = 01' ?

It shouldn't do so - can you show us the actual pca command line you are 
using?

Maybe you are running "pca -i all" instead of the default patch group 
("missing"). Be aware that "all" only really makes sense when using it 
with e.g. "pca -l all" to list all patches that apply to a machine, both 
the ones which are installed and those which are missing.

Martin.

Jeff Blaine | 4 Mar 09:58 2008
Picon

Re: Why try to install patches that are already applied?

Here's one example:

bash-2.05# cd /export/sun-patches/files && /silmaril.foo.com/tmp/pca -y 
--xrefdir=/silmaril.foo.com/tmp --patchdir=/export/sun-patches/files 
--user=MYUSERNAME --passwd=MYPASS --backdir=/silmaril.foo.com/tmp 
--install installedrs

...

Using /silmaril.foo.com/tmp/patchdiag.xref from Feb/29/08
Host: silmaril.foo.com (SunOS 5.9/Generic_122300-21/sparc/sun4u)
List: installedrs

Patch  IR   CR RSB Age Synopsis
------ -- - -- --- --- 
-------------------------------------------------------
112951 14 = 14 RS-  98 SunOS 5.9: patchadd and patchrm Patch

Downloading 112951-14 (1/165)
Skipped (file exists)

Installing 112951-14 (1/165)
Unzipping patch
Running patchadd

Checking installed patches...
Patch 112951-14 has already been applied.
See patchadd(1M) for instructions.

Patchadd is terminating.
(Continue reading)

Martin Paul | 4 Mar 10:11 2008
Picon
Picon

Re: Why try to install patches that are already applied?

Jeff Blaine wrote:
> Here's one example:
> 
> bash-2.05# cd /export/sun-patches/files && /silmaril.foo.com/tmp/pca -y 
> --xrefdir=/silmaril.foo.com/tmp --patchdir=/export/sun-patches/files 
> --user=MYUSERNAME --passwd=MYPASS --backdir=/silmaril.foo.com/tmp 
> --install installedrs

You are asking to pca to install all recommended and security patches 
which are already *installed* by using the "installedrs" group; that 
doesn't make sense.

Use "... --install missingrs" instead, which will install all the 
*missing* recommended and security patches.

Hope it's clear now,

Martin.

Jeff Blaine | 4 Mar 10:17 2008
Picon

Re: Why try to install patches that are already applied?

Martin Paul wrote:
> Jeff Blaine wrote:
>> Here's one example:
>>
>> bash-2.05# cd /export/sun-patches/files && /silmaril.foo.com/tmp/pca 
>> -y --xrefdir=/silmaril.foo.com/tmp 
>> --patchdir=/export/sun-patches/files --user=MYUSERNAME --passwd=MYPASS 
>> --backdir=/silmaril.foo.com/tmp --install installedrs
> 
> You are asking to pca to install all recommended and security patches 
> which are already *installed* by using the "installedrs" group; that 
> doesn't make sense.

Okay.

	'all and installed make no sense to use when running in
	--install mode'

...might be worth mentioning on the Usage web page.

I want the last 5 hours of my life back :)

Off to bed.

Thanks

> Use "... --install missingrs" instead, which will install all the 
> *missing* recommended and security patches.
> 
> Hope it's clear now,
(Continue reading)

Martin Paul | 4 Mar 10:29 2008
Picon
Picon

Re: Why try to install patches that are already applied?

Jeff Blaine wrote:
>     'all and installed make no sense to use when running in
>     --install mode'

That's only 99% true, though. If you have a Solaris installation with a 
limited set of packages installed, and later add more packages, it might 
actually make sense to re-install already installed patches. Background: 
a patch might come with changes to 2 different packages (SUNWa, SUNWb). 
If only SUNWa is installed, only these changes will be applied when 
installing the patch. If you add SUNWb later, this package will be 
unpatched. When installing the same patch again, it will leave SUNWa 
alone and apply changes to SUNWb only. That's one of the deficiencies in 
Sun's patch system, and one of the reasons why it might be easier to 
install everything ("Entire Distribution") when setting up a machine.

> ...might be worth mentioning on the Usage web page.

I think it describes "installed" and "missing" quite well. Plus, 
"missing" is the default for a good reason :)

> I want the last 5 hours of my life back :)

Can't give you that, but no matter whether with or without pca, you will 
collect your amount of wasted time when dealing with Solaris patches :)

> Off to bed.

Good night,

Martin.
(Continue reading)

Jeff A. Earickson | 5 Mar 16:20 2008

how to do multiple pattern matches?

Martin,

How do I have multiple pattern matches?  In my .pca file
I have:

pattern=!VERITAS
pattern=!JavaSE

The first line gets ignored.  I tried

pattern=!VERITAS,!JavaSE

and that didn't work either.

Jeff Earickson
Colby College

przemolicc | 6 Mar 09:44 2008

pca and Live Upgrade

Hello,

I am thinking about the most convenient way of using pca
with Live Upgrade. Can you share your knowledge regarding this
topic ? Is the way:
# lumount <BE>
# pca --rootdir=/<mounted BE> ...
the most handy ?

Regards
przemol

--

-- 
http://przemol.blogspot.com/

----------------------------------------------------------------------
Zobacz - 180 km/h w skodzie tatusia!
kliknij >>> http://link.interia.pl/f1d1e

Martin Paul | 6 Mar 11:05 2008
Picon
Picon

Re: how to do multiple pattern matches?

Jeff A. Earickson wrote:
> How do I have multiple pattern matches? 

Only one pattern option is supported as of now, but as the pattern can 
be any perl regular expression, you can work around with:

   pattern=!VERITAS|JavaSE

Internally, pca checks pattern for a leading '!'. If there isn't, the 
check is done with "=~ /$pattern/". If there is, it strips '!' from the 
pattern and uses "!~ /$pattern/".

In the past, I've played around with support of multiple pattern 
options, but it turned out that it's not as easy as it seems - the big 
question is whether patterns should be logically ANDed or ORed. I found 
that neither of these work in all cases, so I gave up.

Martin.

Martin Paul | 6 Mar 11:10 2008
Picon
Picon

Re: Broken Java patches

Martin Paul wrote:
> In today's xref file, the Java 5.0 patches (11866[6789]) have been 
> updated from revision 15 to 16, but downloading the patches with pca 
> fails.

Update - the correct x86 patches (118668-16 and 118669-16) are available 
now and download & install fine.

The sparc patches (118666-16 and 118667-16) still can't be downloaded.

Martin.


Gmane