I have an existing CentOS installation which I'd like to install extra packages to. The packages to be installed were supplied to me in a list, one package per line, which looks like:
....
Cluster_Administration-en-US.noarch
ElectricFence.x86_64
GConf2.i386
GConf2.x86_64
GConf2-devel.i386
GConf2-devel.x86_64
Global_File_System-en-US.noarch
ImageMagick.i386
...
Using this text file, is there a way to install every package listed? I suspect the list is actually a list of 'all' packages which could have been installed when the operating system was originally set up.
Best Answer
Yes, do this:
yum -y install $(cat file_name)