Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 17:39:14 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        freebsd-stable@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: which port installed what other port
Message-ID:  <31d638c5-1cf5-8f80-97b3-c332c7cb50a7@madpilot.net>
In-Reply-To: <20190121162634.GA30993@rpi3.zyxst.net>
References:  <20190121162634.GA30993@rpi3.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21/01/19 17:26, tech-lists wrote:
> Hi,
> 
> Is there a command (or a port) I can use which, when fed an installed
> port name, can tell me what installed it?
> 
> I don't mean libraries. I mean the actual port name.
> 

Not sure what you're looking for anyway pkg has such functionality for
run time dependencies:

pkg info -d '*name*'

shows packages on which any package matching '*name*' depends.

You also have pkg info -r '*name*' which shows all packages requiring a
specific package.

This works only for run time dependencies (libraries and other), not for
build time dependencies, which are not registered in the pkg database.

Such information is not saved anywhere and is registered only in the
port Makefiles.

Check pkg-info(8) for further reference.

Hope this helps.

-- 
Guido Falsi <mad@madpilot.net>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31d638c5-1cf5-8f80-97b3-c332c7cb50a7>