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

Chris Rees utisoft at gmail.com
Mon Feb 18 09:01:24 UTC 2013


On 18 Feb 2013 05:35, "Jeffrey Bouquet" <jeffreybouquet at yahoo.com> wrote:
>
>
>
> --- 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...)

Why???

Chris


More information about the freebsd-ports mailing list