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

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  📱 
+49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
13. August 2018: Manchmal möchte ich nun einen AUSREISEANTRAG stellen.
August 13, 2018: Sometimes I'd like to ask for an exit permission now.
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to