Is there an easy way to find out which port loads which library?

Jeffrey Bouquet jeffreybouquet at yahoo.com
Mon Feb 18 05:35:07 UTC 2013



--- On Sun, 2/17/13, A.J. 'Fonz' van Werven <fonz at skysmurf.nl> wrote:

>From: A.J. 'Fonz' van Werven <fonz at skysmurf.nl>
>Subject: Re: Is there an easy way to find out which port loads which library?
>To: "Bernard Higonnet" <bthcom at higonnet.net>
>Cc: freebsd-ports at freebsd.org
>Date: Sunday, February 17, 2013, 9:21 AM

>Bernard Higonnet wrote:

> Is there a simple, direct, complete, and unequivocal way to find out 
> which port(s) install which libraries?

>Something like this perhaps?
># grep libfoobar.so /usr/ports/*/*/pkg-plist

>AvW

None of these replies mention
pkg which /usr/local/lib/libfoobar.so
pkg_which /usr/local/lib/libfoobar.so 
...
I typically use one or both (still using /var/db/pkg after running pkg2ng once a
long time ago...) 

J. Bouquet


More information about the freebsd-ports mailing list