file2port search
Edwin Groothuis
edwin at mavetju.org
Thu May 1 05:30:25 PDT 2003
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 at mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php
More information about the freebsd-ports
mailing list