Hi Bruce,

Bruce Rothermal said the following on Tuesday 25 November 2008 02:55 AM:
> Hi All
>
> I know that you can run ldd <exec> to find out what lib's are  
> dependancies for the exec.
>
> How do you figure out what package these libraries belong to so that  
> it can be listed in the depend file of the new package being created.
>   

We can also use pkgchk command to figure out which package installs the 
specific file (library file in this case) as below :

$/usr/sbin/pkgchk -l -p <absolute_path_of_the_library_name>

Eg:
$ */usr/sbin/pkgchk -l -p /usr/lib/libcurl.so.3.0.0 *
NOTE: Couldn't lock the package database.
Pathname: */usr/lib/libcurl.so.3.0.0*
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: bin
Expected file size (bytes): 286160
Expected sum(1) of contents: 24141
Expected last modification: Oct 02 08:38:33 2008
Referenced by the following packages:
*SUNWcurl*
Current status: installed

Thanks,
Srirama

> Thanks for any suggestions.
>
> Bruce
>
> _______________________________________________
> sfwnv-discuss mailing list
> sfwnv-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/sfwnv-discuss
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/sfwnv-discuss/attachments/20081125/142b7e9f/attachment.html>

Reply via email to