Linux – How to Install Packages Through Yum from File

linuxyum

Is there any way to install packages through yum from a file?

Something like:

yum -f packages.txt

I couldn't find anything in the man pages.

packages.txt would contain something like:

bash
bc
binutils
bzip2
bzip2-libs
ca-certificates
cairo

Best Answer

xargs yum -y install < filename