[Yum] Installing all the RPMs in one go?

Ian Mortimer I.Mortimer at uq.edu.au
Thu Mar 20 03:25:35 UTC 2008


On Wed, 2008-03-19 at 23:17 -0400, Jim Wildman wrote:

> cat rpm.lst | yum -y install
>
> or yum -y install `cat rpm.lst`

Better would be:

yum -y install $(< rpm.lst)

> or even
> 
> cat rpm.lst | xargs yum -y install  (which will deal with the
> potentially really long line)

Better would be:

xargs -a rpm.lst yum -y install

> or create a wrapper rpm that is nothing but a bunch of Requires: lines,
> and install it.

A metapackage might be the answer (depends on how often the list of rpms
changes).


-- 
Ian



More information about the Yum mailing list