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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > #!/bin/bash
> > for rpmfile in `cat foo`
> > do
> >     yum install $rpmfile
> > done
>
> that will be VERY VERY VERY slow.

Yes, it certainly would be.  I should've attempted to do that prior to
posting. (/me makes a mental note to do that in the future)

> for rpmfile in `cat foo`
> do
>   mylist="$mylist $rpmfile"
> done
> yum install $mylist

For that matter, let's forgo the loop entirely:

mylist=`cat foo`
yum install $mylist

(The above worked happily on FC1, w/ yum 2.0.4, and bash.)

-Jim


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux