Looking up libraries and header files

Greg Larkin glarkin at FreeBSD.org
Thu Oct 1 14:08:15 UTC 2009


-----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

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKxLfI0sRouByUApARAoBAAJ4k8Ypua7VjFNPk19CnGr1EKrpz8ACglQQm
UVP8gTXBr15nr6DPt95pT+c=
=+ij6
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list