From owner-freebsd-questions Tue Oct 10 19: 2:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 2CF4037B66E for ; Tue, 10 Oct 2000 19:02:07 -0700 (PDT) Received: (qmail 600 invoked by uid 100); 11 Oct 2000 02:01:57 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14819.51733.257384.122205@guru.mired.org> Date: Tue, 10 Oct 2000 21:01:57 -0500 (CDT) To: Michael Lucas Cc: questions@freebsd.org Subject: Re: library-port matching tool? In-Reply-To: <20001010214840.A6764@blackhelicopters.org> References: <127489075@toto.iv> <14819.46272.982612.387928@guru.mired.org> <20001010214840.A6764@blackhelicopters.org> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael Lucas writes: > > > Do we have a generalized method of looking up a library to find out > > > what port it's in? > > Yes, but it sucks: > > find /usr/ports -name PLIST | xargs grep > Hmmm... does that work if the port isn't installed? Depends on what you mean by "port isn't installed." It obviously won't find things that are in ports for which you don't have the port in /usr/ports. However, it will work for things that you haven't done a "make install" for. If you want to check things that you've done a "make install" on, then use this: find /var/db/pkg -name +CONTENTS | xargs grep It doesn't suck quite so much - unless you have many ports installed.