which port would install bin/foo

Xin LI delphij at gmail.com
Fri Nov 18 10:01:12 PST 2005


Hi,

On 11/19/05, Vasil Dimov <vd at datamax.bg> wrote:
> Hello,
>
> Is there any way to tell which port(s) would install some file, say
> bin/resize?
>
> ``grep bin/resize /usr/ports/*/*/pkg-plist'' is hell slow (well, it
> gives "Argument list too long", but if it didn't it would be hell slow :)

Maybe you want:

find /usr/ports -name 'pkg-plist' | xargs grep bin/resize

And for installed packages(ports) you will want pkg_info -W

Cheers,
--
Xin LI <delphij at delphij.net> http://www.delphij.net


More information about the freebsd-ports mailing list