getting all dependencies recursively

Armijn Hemel <[email protected]> Mon, 5 Apr 2004 21:07:09 +0200
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
hello,

the last few weeks I've been busy trying to hack (yes, really hack, as
it is very ugly code) on a program that does the following:

"given a package name, find all packages the package depends on
recursively" (assuming a database with all the package information is
available).

So for example if I'd need the dependencies for "mutt" it would go all
the way down to glibc-common, basesystem, etc.

Such a program would be very convenient for example if you want to
install a program in a chroot environment with RPM (with --root) and want
to know all packages it needs.

I just found out that, of course, I was doing completely the wrong
thing, and thought that maybe it would be wise to ask if such a program
already exists :)

So, does such a program already exist? :D

armijn

-- 
 ---------------------------------------------------------------------------
  [email protected] | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
 ---------------------------------------------------------------------------