[PLUG] Using YUM to install RPMs from a text file list

Jason Dagit dagitj at gmail.com
Wed Jul 22 23:37:00 UTC 2009


On Sun, Jul 19, 2009 at 10:22 AM, Dwight Hubbard
<dwight at dwighthubbard.com>wrote:

> This command will give you a space separated list of all the RPMS
> rpm -qa --qf "%{NAME} " > rpmlist.txt
>
> This should pass the list to yum on the command line
> sudo "yum install `cat rpmlist.txt`"
>
> However if the list is to long it might exceed the length of a single
> command
> line, so it might work better to do a simple loop, like this
>

Sounds like a job for xargs.

Jason



More information about the PLUG mailing list