Re: getting all dependencies recursively

Armijn Hemel <[email protected]> Mon, 5 Apr 2004 22:50:10 +0200
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
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...

armijn

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