[Yum] How to get yum to read package names from a file

Jim McConnell jim at mcconnell.net
Sun Feb 15 21:53:46 UTC 2004


> Sorry, in fact I tried "cat foo | xargs yum install"
> That fails because now yum's stdin is redirected to foo,
> and it cannot ask for confirmation.

How about:

#!/bin/bash
for rpmfile in `cat foo`
do
    yum install $rpmfile
done



More information about the Yum mailing list