Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 2009 07:49:29 -0700
From:      "David Southwell" <david@vizion2000.net>
To:        <glarkin@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Looking up libraries and header files
Message-ID:  <1534FEAD709A421F9478376D43DFA189@sleuth64>
In-Reply-To: <4AC4B7C9.7040104@FreeBSD.org>
References:  <A2802A2B3EFE4CE4A3E07ECA3D89D58B@sleuth64> <4AC4B7C9.7040104@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org 
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Greg Larkin
> Sent: 01 October 2009 07:08
> To: david@vizion2000.net
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Looking up libraries and header files
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> david@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!
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1534FEAD709A421F9478376D43DFA189>