Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Mar 2014 15:41:55 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        Randy Pratt <bsd-unix@embarqmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg equivalent of "pkg_info -R"
Message-ID:  <5319DAB3.3050305@netfence.it>
In-Reply-To: <20140306184030.078a99cedac859b5c5b83e22@embarqmail.com>
References:  <53186ABC.5060601@netfence.it> <20140306184030.078a99cedac859b5c5b83e22@embarqmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/07/14 00:40, Randy Pratt wrote:

>> I know "pkg info -r xxx", but this will just list ports which *directly*
>> depend on xxx. I could find no way to get indirect dependents too.
>>
>> Is there something I'm missing? Any additional utility I can install?
>
> I think what you're looking for is "pkg query %ro xxx".

Doesn't work here.

An example:

> # pkg query %ro gnutls
> net/glib-networking
> multimedia/ffmpeg

Of course:
> # pkg query %ro glib-networking
> devel/libsoup
> devel/libsoup-gnome

> # pkg query %ro libsoup
> devel/libsoup-gnome
> x11/xfce4-screenshooter-plugin
> www/webkit-gtk2
> graphics/gimp-app
> devel/gvfs

So, in the end, what I'm looking for is a tool which shows that, as an 
example, gimp-app and xfce4-screenshooter-plugin require gnutls.

I could easily achieve this with "pkg_info -R gnutls\*", back in the old 
days.



> Note that it only lists run
> dependencies since build dependencies are irrelevant with packages.

Fine: that would exactly be what I was looking for.


  bye & Thanks
	av.



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