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

Alex Eskin alexeskin at yahoo.com
Sun Feb 15 17:04:28 UTC 2004


This is probably a stupid question. I have a file (foo) containing
names of packages, one per line. I want to use yum to install
these packages.

I tried   "xargs foo | yum install" 
but that does not work since yum wants to read from stdin. 
I do not want to use "assume yes".

I ended up editing the file to make it a shell script
(by replacing newlines with spaces and putting "yum install"
in the front). Surely there must be a better way...

Thanks, 

Alex


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html



More information about the Yum mailing list