[pca] new "pkgdep" command
Glenn Satchell
glenn.satchell at uniq.com.au
Fri May 4 01:24:40 CEST 2012
Sun's /usr/bin/perl is a symlink, so restoring that is easy.
ls -l /usr/bin/perl
lrwxrwxrwx 1 root root 23 Feb 17 2005 /usr/bin/perl ->
../perl5/5.8.4/bin/perl
There are lots of "system" things now using /usr/bin/perl and expecting
the Sun modules, etc, to be in place, so you should restore that
symlink, and use something like /opt/perl/bin/perl for scripts that you
want to use your version of perl.
BTW pkgdep looks pretty useful.
regards,
-glenn
On 05/04/12 00:18, Jeff Earickson wrote:
> All,
>
> If you have mucked with perl on Solaris, beware. Here is what I got:
>
> (71)> /usr/sbin/pkgdep -v SUNWgzip
> Can't locate Sun/Solaris/Utils.pm in @INC (@INC contains:
> /opt/perl5/lib/site_perl/5.12.1/sun4-solaris
> /opt/perl5/lib/site_perl/5.12.1 /opt/perl5/lib/5.12.1/sun4-solaris
> /opt/perl5/lib/5.12.1 /opt/perl5/lib/site_perl/5.10.1
> /opt/perl5/lib/site_perl .) at /usr/sbin/pkgdep line 13.
> BEGIN failed--compilation aborted at /usr/sbin/pkgdep line 13.
>
> I installed later versions of perl in /opt and Sun's /usr/bin/perl got
> overwritten by my version. I did find Sun/Solaris/Utils.pm in
> /usr/perl5/5.8.4/lib, but I haven't figured out how to get this stuff
> copied from there to /opt/perl5/lib to get pkgdep to work. I hope
> this doesn't bite me later...
>
> Jeff Earickson
> Colby College
>
>
> On Thu, May 3, 2012 at 5:06 AM, Martin Paul<martin.paul at univie.ac.at> wrote:
>> Not directly related to PCA, but might be handy: In the README of the new
>> revision of the "Install and Patch Utilities Patch" for Solaris 10
>> (119254-84, 119255-84) I spotted this:
>>
>> 5012345 request for tool to list package dependencies
>>
>> And indeed, the patches include a new script /usr/sbin/pkgdep, which prints
>> dependencies of a given package. E.g.:
>>
>> $ pkgdep -v SUNWgzip
>> SUNWcar - Core Architecture, (Root)
>> SUNWcsd - Core Solaris Devices
>> SUNWcsl - Core Solaris Libraries
>> SUNWcsr - Core Solaris, (Root)
>> SUNWcsu - Core Solaris, (Usr)
>> SUNWkvm - Core Architecture, (Kvm)
>>
>> hth, Martin.
>>
>
>
More information about the pca
mailing list