Date: Thu, 1 May 2003 22:30:16 +1000 From: Edwin Groothuis <edwin@mavetju.org> To: freebsd-ports@freebsd.org Subject: Re: file2port search Message-ID: <20030501123016.GA500@k7.mavetju> In-Reply-To: <20030501121627.GA840@daemon.li> References: <20030501121627.GA840@daemon.li>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501123016.GA500>