Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2018 19:29:37 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: how to do pkg_info -W without pkg_info?
Message-ID:  <20180930172937.GA29315@sh4-5.1blu.de>
In-Reply-To: <EEC68B00-B431-4170-8E51-073066A239A0@kreme.com>
References:  <EEC68B00-B431-4170-8E51-073066A239A0@kreme.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ✉ guru@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180930172937.GA29315>