yum install from list

Aaron Bliss abliss at brockport.edu
Wed Jul 23 19:57:32 UTC 2008


Chaim,
Try this. 
exec < install.list
while read line
do
yum -y install $line
done

Aaron

Chaim Rieger wrote:
> have a list of packages that i would like to install via yum
> tried this way
> for i in `cat install.list | cut -d "-" -f 1` ; do yum -y install $1 ; 
> done
> didnt work
>
> anybody know how i can point yum to install all packeges listed in the 
> file install.list ?
>
>
> thanx
>
>

-- 
Aaron Bliss
Systems Administrator
SUNY Brockport
(585) 395-2417




More information about the redhat-list mailing list