Gentoo Archives: gentoo-user

From: Willie Wong <wwong@×××××××××.EDU>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] howto list packages that depend on the package?
Date: Mon, 12 Sep 2005 22:56:28
Message-Id: 20050912224142.GC12466@princeton.edu
In Reply to: [gentoo-user] howto list packages that depend on the package? by Peter Ziobrzynski
1 On Mon, Sep 12, 2005 at 01:32:42PM -0600, Peter Ziobrzynski wrote:
2 > Is there a way to get the list of packages that depend on a package
3 > (dependent packages) then doing grep through the /var/db/pkgs like that?
4 >
5 > cd /var/db/pkg
6 > find . -name DEPEND | xargs grep avifile
7 >
8 > Unfortunately this only lists locally installed packages.
9 >
10 > The reverse operation for finding a list of dependent packages for a
11 > package is provided with 'emerge --emptytree -p mozilla'. Is there
12 > something like that for the first question?
13
14 [06:24 PM]wwong ~ $ equery belongs equery
15 [ Searching for file(s) equery in *... ]
16 app-portage/gentoolkit-0.2.0 (/usr/bin/equery)
17 app-portage/gentoolkit-0.2.0 (/usr/share/doc/gentoolkit-0.2.0_pre10/equery)
18 [06:38 PM]wwong ~ $ equery depends avifile
19 [ Searching for packages depending on avifile... ]
20 [06:39 PM]wwong ~ $ equery depends ffmpeg
21 [ Searching for packages depending on ffmpeg... ]
22 media-libs/xine-lib-1.0.1-r3
23
24 (I don't have avifile installed)
25
26 so... emerge gentoolkit
27 run equery with no arguments to see what it can do.
28
29 W
30
31 --
32 Inside some of us is a thin person struggling to get out, but she can
33 usually be sedated with a few pieces of chocolate cake.
34 Sortir en Pantoufles: up 32 days, 1:42
35 --
36 gentoo-user@g.o mailing list