Re: getting all dependencies recursively
Tres Seaver <[email protected]> Mon, 05 Apr 2004 17:11:29 -0400
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Organization | Zope Corporation |
| Message-ID | <[email protected]> |
Armijn Hemel wrote: > Hi, > > >>>"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. >> >>Yum supports --root so you could do >> >>mkdir -p /some/where/root/var/lib/rpm >>rpm --root /some/where/root --initdb >>yum --root /some/where/root install mutt >> >>That should all work OTOH, just set your yum.conf up with at your repo, and run yum-arch over it. > > > Ehrm, no that's not entirely what I meant. I don't need to install the > packages, I just need a list of packages... You need the notional "--dry-run" argument, which yum didn't have last I looked. Tres. -- =============================================================== Tres Seaver [email protected] Zope Corporation "Zope Dealers" http://www.zope.com