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. thanks, -- J.
Try "pkg info -r <pkgname>". And to go the other direction, use "pkg info -d <pkgname>". -Alan On Mon, Jan 21, 2019 at 9:27 AM tech-lists <tech-lists at zyxst.net> 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. > > thanks, > -- > J. > _______________________________________________ > freebsd-stable at freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
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 at madpilot.net>