On 03/22/10 13:18, Frank Middleton wrote:
On 03/22/10 04:46 AM, Tim Foster wrote:
Can you try
pkg contents -m SUNWcsl | grep lib/libdlpi.so.1 | awk '{print $2}'

Needed a slight tweak to avoid getting both i386 and SPARC

# date
Monday, March 22, 2010 4:16:24 PM EDT
# curl -s http://pkg.opensolaris.org/dev/file/0/`pkg contents -m SUNWcsl
| grep lib/libdlpi.so.1 | grep i386 | awk '{print $2}'` | gzip -dc >
/tmp/libdlpi.so.1
# ls -l --full-time /tmp/libdlpi.so.1
-rw-r--r-- 1 root root 49256 2010-03-22 16:16:31.438543026 -0400
/tmp/libdlpi.so.1

Looks like a useful script to have floating around! Only problem I can
see is
that it doesn't specify which release. Does pkg do that behind the covers?

"pkg contents -m" w/o the -r file will always deliver the contents of the installed package; w/ a -r and w/o a version, you get the latest.

- Bart


--
Bart Smaalders                  Solaris Kernel Performance
[email protected]       http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to