From owner-freebsd-questions@FreeBSD.ORG Thu Oct 1 14:08:15 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 B21B2106568D for ; Thu, 1 Oct 2009 14:08:15 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 914638FC1E for ; Thu, 1 Oct 2009 14:08:15 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MtMKH-00067J-40; Thu, 01 Oct 2009 10:08:14 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 50BB03556AF2; Thu, 1 Oct 2009 10:08:09 -0400 (EDT) Message-ID: <4AC4B7C9.7040104@FreeBSD.org> Date: Thu, 01 Oct 2009 10:08:09 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: david@vizion2000.net References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: freebsd-questions@freebsd.org Subject: Re: Looking up libraries and header files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 14:08:15 -0000 -----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!! > > Thanks in advance > David > Hi David, pkg_which will do what you want: # pkg_which /usr/local/include/librsync.h [Updating the pkgdb 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-----