yum update / install from file

Joachim Backes joachim.backes at rhrk.uni-kl.de
Tue Oct 23 05:52:28 UTC 2007


Tony Crouch wrote:
> Hi All, 
> I was wondering if anyone knows whether its possible to update yum from
> a file containing a list of packages (one per line).
> 
> I have tried:
> 
> yum -y install < file-name

Better: yum -y install $(cat filename)

makes from the lines of filename the options list (package list) for yum.

Regards

Joachim Backes

> 
> but that didn't work. 
> 
> I also had a look through the `man yum' manual and there doesn't seem to
> be any direct flag available for yum to take its input from a file
> rather than the terminal itself.
> 
> I was wondering if anyone else might be able to offer any suggestions?
> 
> Thanks for your help.
> 
> All the best.
> 
> Cheers, 
> Tony Crouch
> 


-- 
Joachim Backes <joachim.backes at rhrk.uni-kl.de>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6088 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071023/2f8cb40e/attachment-0001.bin>


More information about the fedora-list mailing list