Date: 1 May 2003 18:05:24 -0000 From: tmseck-lists@netcologne.de (Thomas Seck) To: freebsd-ports@freebsd.org Subject: Re: file2port search Message-ID: <20030501180524.87093.qmail@laurel.tmseck.homedns.org> In-Reply-To: <20030501123016.GA500@k7.mavetju>
next in thread | previous in thread | raw e-mail | index | archive | help
* Edwin Groothuis (edwin@mavetju.org): > On Thu, May 01, 2003 at 02:16:27PM +0200, Josef El-Rayes wrote: >> i was wondering whether there is a more convienient way to resolve a >> file<->port search, than doing something like this >> >> find /usr/ports -name pkg-plist -print0 | xargs -0 grep <file> > > "grep <file> /var/db/pkg/*/+CONTENTS" would work for all installed ports. > Don't know if such a beast for all uninstalled ports should work > too, but compiling a small database for it (dbm) would be a better > solution than grepping for it. > > But yeah, pkg_which or pkg_search should be nice to have by default. pkg_info -W /path/to/file exists. --Thomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501180524.87093.qmail>