create file of packages to install with yum

C++
sudo yum install $(cat file_name)
Source

Also in C++: