On Mon, Apr 19, 2004 at 01:17:07AM +0100, Calum Mackay wrote: > > there's probably a better way, but I generally just use reportbug to > generate the list [and then discard the bug :)]. > > I checked the Python source for reportbug, and it works out the > dependencies itself, rather than calling some external program, so > perhaps there's no better way...? apt-rdepends, funnily enough, lists the forward dependencies of a package when not called with -r (reverse). Turns out the r in its name is for recursive, not reverse :), and you can limit the recursion depth by putting garbage into the --state-follow option: $ apt-rdepends --state-follow=None gthumb Reading Package Lists... Done Building Dependency Tree... Done gthumb Depends: libart-2.0-2 (>= 2.3.8) Depends: libatk1.0-0 (>= 1.4.1) Depends: libaudiofile0 (>= 0.2.3-4) Depends: libbonobo2-0 (>= 2.4.3) Depends: libbonoboui2-0 (>= 2.4.3) Depends: libc6 (>= 2.3.2.ds1-4) Depends: libesd-alsa0 (>= 0.2.29-1) Depends: libesd0 (>= 0.2.29-1) Depends: libexif9 Depends: libfontconfig1 (>= 2.2.1) Depends: libfreetype6 (>= 2.1.5-1) Depends: libgconf2-4 (>= 2.4.0.1) Depends: libgcrypt1 (>> 1.1.11-0) Depends: libglade2-0 (>= 2.0.0) Depends: libglib2.0-0 (>= 2.2.3) Depends: libgnome2-0 (>= 2.4.0) Depends: libgnomecanvas2-0 (>= 2.4.0) Depends: libgnomeprint2.2-0 (>= 2.4.2) Depends: libgnomeprintui2.2-0 (>= 2.4.2) Depends: libgnomeui-0 (>= 2.4.0.1-2) Depends: libgnomevfs2-0 (>= 2.4.1) Depends: libgnomevfs2-common (>= 2.4.1) Depends: libgnutls7 (>= 0.8.12-2) Depends: libgtk2.0-0 (>= 2.2.1) Depends: libjpeg62 Depends: liborbit2 (>= 1:2.8.0) Depends: libpango1.0-0 (>= 1.2.1) Depends: libpng10-0 (>= 1.0.15-4) Depends: libpopt0 (>= 1.7) Depends: libtasn1-0 (>= 0.1.1-2) Depends: libtiff3g Depends: libxml2 (>= 2.6.3) Depends: libxrender1 Depends: scrollkeeper (>= 0.3.8) Depends: xlibs (>> 4.1.0) Depends: zlib1g (>= 1:1.2.1) -- John Lenton (john@grulic.org.ar) -- Random fortune: It gets late early out there. -- Yogi Berra
Attachment:
signature.asc
Description: Digital signature