how to do pkg_info -W without pkg_info?

Baptiste Daroussin bapt at FreeBSD.org
Thu Oct 4 12:48:10 UTC 2018


On Sun, Sep 30, 2018 at 07:29:37PM +0200, Matthias Apitz wrote:
> El día Sunday, September 30, 2018 a las 11:09:20AM -0600, @lbutlr escribió:
> 
> > I would like to find out what port installed a specific file, and in searching I found the suggestion, from 2010, to use
> > 
> > pkg_info -W <name of file>
> > 
> > But on FreeBSD 11.1-p4-RELEASE with postmaster, there is no pkg_info and `pkg info` doesn't have a -W flag nor, apparently, a way to check for where a file came from.
> > 
> > 
> 
> $ which gcc
> /usr/local/bin/gcc
> $ pkg which /usr/local/bin/gcc
> /usr/local/bin/gcc was installed by package gcc-4.9.4
> 
> $ man pkg-which
> 
> 
> 	matthias
> 
pkg which -p gcc :)

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20181004/b8a8154e/attachment.sig>


More information about the freebsd-ports mailing list