Looking up libraries and header files
David Southwell
david at vizion2000.net
Thu Oct 1 14:49:58 UTC 2009
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Greg Larkin
> Sent: 01 October 2009 07:08
> To: david at vizion2000.net
> Cc: freebsd-questions at freebsd.org
> Subject: Re: Looking up libraries and header files
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> david at vizion2000.net wrote:
> > Hi
> >
> > What is the simplest way to found out which port installs specific
> > harder or library files?
> >
> > ATM I do it through a google search on the file name and
> usually find
> > a clue.. but I suspect there ia better mousetrap!! <chuckles>
> >
> > Thanks in advance
> > David
> >
>
> Hi David,
>
> pkg_which will do what you want:
>
> # pkg_which /usr/local/include/librsync.h [Updating the pkgdb
> <format:bdb_btree> in /var/db/pkg ... - 289 packages found
> (-1 +1) (...). done]
> librsync-0.9.7_1
> #
>
> Cheers,
> Greg
> - --
> Greg Larkin
Thanks Greg
U R on the ball as usual!
>
More information about the freebsd-questions
mailing list