Date: Tue, 15 Apr 2003 00:16:33 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: David Kelly <dkelly@HiWAAY.net> Cc: FreeBSD-Questions@freebsd.org Subject: Re: how to find which package contains file? Message-ID: <20030415051633.GG84095@dan.emsphone.com> In-Reply-To: <200304142042.03864.dkelly@HiWAAY.net> References: <3E9B5A56.2070609@yahoo-inc.com> <1050368712.69920.39.camel@shumai.marcuscom.com> <3E9B5D94.4070401@bigfoot.com> <200304142042.03864.dkelly@HiWAAY.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 14), David Kelly said: > On Monday 14 April 2003 08:17 pm, Erik Steffl wrote: > > >If you have the package and file already installed on your system: > > > > > >pkg_info -W /path/to/file > > > > thanks but what about the situation described abovwe - when I am > > trying to find which package to install when there's some file > > missing? (usually a library but could be something else). > > Something like this (it will take a while so carefully select the RE > you use for grep. "perllocal.pod" in this example): > > % find /usr/ports -name pkg-plist | xargs grep -l perllocal.pod > /usr/ports/mail/p5-Mail-SpamAssassin/pkg-plist > /usr/ports/astro/p5-Astro-Sunrise/pkg-plist > /usr/ports/audio/p5-CDDB_get/pkg-plist > /usr/ports/databases/p5-DBIx-XHTML_Table/pkg-plist > /usr/ports/devel/autodia/pkg-plist > [...] Although note that some ports dynamically generate their own plists (the gcc ports, for example), so this will nto work in all cases. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030415051633.GG84095>