From owner-freebsd-questions@FreeBSD.ORG Thu Oct 1 16:48:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF9FB106566B for ; Thu, 1 Oct 2009 16:48:09 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.freebsd.org (Postfix) with ESMTP id 97BEC8FC17 for ; Thu, 1 Oct 2009 16:48:09 +0000 (UTC) Received: (qmail 5739 invoked from network); 1 Oct 2009 16:48:08 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Oct 2009 16:48:08 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 88E02508BE; Thu, 1 Oct 2009 12:48:07 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org References: <20091001140724.GA27416@brisbane.nepharia.org> <4EDA11A6F5CE4422A7BE01EE571C58DA@sleuth64> <529486569750436B97C259AC2D363D7F@sleuth64> Date: Thu, 01 Oct 2009 12:48:07 -0400 In-Reply-To: <529486569750436B97C259AC2D363D7F@sleuth64> (David Southwell's message of "Thu, 1 Oct 2009 07:53:14 -0700") Message-ID: <44bpkrysag.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: david@vizion2000.net Subject: Re: Looking up libraries and header files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 16:48:09 -0000 "David Southwell" writes: > > >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org >> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of >> David Southwell >> Sent: 01 October 2009 07:50 >> To: 'Mak Kolybabi' >> Cc: freebsd-questions@freebsd.org >> Subject: RE: Looking up libraries and header files >> >> >> >> > -----Original Message----- >> > From: owner-freebsd-questions@freebsd.org >> > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of >> Mak Kolybabi >> > Sent: 01 October 2009 07:07 >> > To: david@vizion2000.net >> > Cc: freebsd-questions@freebsd.org >> > Subject: Re: Looking up libraries and header files >> > >> > On 2009-10-01 06:59, david@vizion2000.net wrote: >> > > What is the simplest way to found out which port installs >> specific >> > > harder or library files? >> > >> > pkg_info has a --which flag that tells you what package a file came >> > from: >> > % pkg_info --which /usr/local/include/pcre.h >> /usr/local/include/pcre.h >> > was installed by package pcre-7.9 >> > >> > -- >> > Matthew Anthony Kolybabi (Mak) >> > >> Thanks Mat >> >> Now I have two solutions for the price of one question >> >> Brill!! > OK > > One problem > > How about ports that are not installed? > > Is there another route that will deal with stuff not on the system? > > David You can search the pkg-plist files in the ports tree. This won't work for ports that build a dynamic plist, but those are fairly unusual among library ports. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/