yum update / install from file

Mikkel L. Ellertson mikkel at infinity-ltd.com
Tue Oct 23 15:17:46 UTC 2007


Aaron Konstam wrote:
> On Tue, 2007-10-23 at 07:52 +0200, Joachim Backes wrote:
>> 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
>>
> Will yum handle the lf chars in the file filename? I don't think so.
> 
I think it is more a matter of how the shell handles them, isn't it?
The $(cat filename) will be expanded by the shell. I believe the
shell will pass them to the program just like they were space
separated on the command line.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071023/e0e56e05/attachment-0001.sig>


More information about the fedora-list mailing list