title: scripting yum to install a list of packages
body: <p>I am having trouble getting yum to work with a list of packages I want to install. I've tried:<br>
      <code>yum -y install $(cat /home/pkglist.txt)</code><br>
  and<br>
      <code>for i in cat pkglist.txt; do yum -y install $i; done</code><br>
  and<br>
      <code>yum -y install $(cat pkglist.txt  | tr '\n' ' ' | tr '\r' ' ')</code><br>
  but none of them install the packages.<br>
  All I get back is:<br>
      <code>
  Loaded plugins: product-id, subscription-manager
  This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
      Setting up Install Process
       available.perl-CPAN
       available.cpp
       available.fontconfig
       available.gcc
       available.gd
       available.net-snmp-libs
       available.mailcap
       available.perl-libwww-perl
       available.perl-XML-LibXML
       available.perl-DateTime
       available.perl-Time-HiRes
       available.make
       available.net-snmp-perl
       available.perl-Test-Pod
       available.perl-Net-SSLeay
       available.expat-devel
       available.expat
      Error: Nothing to do</code>  </p>
  
  <p>Thanks in advance! -Luke  </p>