Recursive list of required packages for kickstart

James Antill james at fedoraproject.org
Wed Jun 16 18:30:56 UTC 2010


On Wed, 2010-06-16 at 14:09 -0400, rarob at travelinglightfarm.net wrote:
> Hello all,
>   I'm trying to generate a minimal list of required packages in order to
> install a particular software package (which itself consists of several
> packages).  Does anyone have a script (shell or python preferred) that
> when given one or more package names, generates a list of the other
> packages that would be required to install it?
>   I know I can do 'rpm -Uvh --test <package names...>' to generate a list
> of packages that are missing and would need to be installed before I can
> install '<package names...>, but I'm looking for something that would
> tell me the exhaustive list of all required package names.  So far my
> google-fu has been lacking....

 The usual way I do this on F-13 is:

yum install mypkg --instalroot=/tmp/test-install-mypkg --release=13

...that'll give you the list of packages and the size (according to the
rpms) they'll take when installed. You can even run the command to get
the exact installed size.

-- 
James Antill - james at fedoraproject.org
http://yum.baseurl.org/wiki/whatsnew/3.2.28
http://yum.baseurl.org/wiki/YumBenchmarks
http://yum.baseurl.org/wiki/YumHistory


More information about the Rpm-list mailing list