[pca] sun studio patches for linux?
Martin Paul
martin at par.univie.ac.at
Thu Feb 25 14:45:11 CET 2010
Gerard Henry wrote:
> i'm wondering if anybody here has a better solution to deal with the
> following process:
Here's a few things which might at least ease the process. Collect this
output from any Solaris system and copy the three *.out files to the
Linux machine once:
uname -a > uname.out
showrev -p > showrev.out
pkginfo -x > pkginfo.out
You can then run pca directly on the Linux machine from then on, using
-f/--fromfiles. Also use pca's pattern option instead of grep, and pca's
format option instead of awk:
$ pca -f . -p 'Studio 12.*Linux' -l total -H --format '%p-%c'
124874-03
124877-02
Personally, I would use this output in a script, which would then loop
through all the patches and extract the package list from each REAMDE with:
pca -r $patch | grep 'sun.*rpm'
Now look up each of the packages with rpm, and see if the version in the
README is newer than the one installed. If so, install the rpm update.
The script is left as an exercise to the user, but sh/sed/awk or perl
should get you there quickly. I can hardly resist doing it myself, but
luckily I have no Linux system with Sun Studio to test :)
Martin.
More information about the pca
mailing list