On 2020-08-23 15:36, Marcus MERIGHI wrote:
Hello,

j...@jsg.id.au (Jonathan Gray), 2020.08.23 (Sun) 08:58 (CEST):
On Sun, Aug 23, 2020 at 08:15:01AM +0200, Matthias wrote:
How do I figure out which packages directly or indirectly depend on a
specific package? Let's assume that only installed packages shall be
considered.

For example, if 'glib2' is the package in question, 'cairo',
'gdk-pixbuf', 'shared-mime-info', 'ImageMagick', etc. should be returned
as all those depend on 'glib2'.

Thank you.

This is really a question for ports@

One way would be to install databases/sqlports then run
'show-reverse-deps devel/glib2'

I thought Matthias was just asking for "pkg_info -R".
("Show which packages require a given package")

Marcus


Almost. 'pkg_info -R' only returns direct dependents. In case of
'glib2', for example, 'ImageMagick' would not be found as its closest
dependency (in my case) is of 3rd degree:

glib2 <- shared-mime-info <- djvulibre <- ImageMagick

Reply via email to