title: download of linux packages using yum utility over a python script fails
body: <p>I am looking to ONLY download multiple packages(600 plus) using the yum utility through a python script.</p>
  
  <p>execution of the script fails. I would be glad if anyone had ideas on fixing this</p>
  
  <p>following is the python script used</p>
  
  <pre><code># cat package-download.py
  import os
  
  filename="test.txt"
  file=open(filename,"r")
  for i in file:
          os.system("/usr/bin/yum install --downloadonly --downloaddir=/root/packages-download" +i)
  </code></pre>
  
  <p>Below is the file containing information about the packages </p>
  
  <pre><code>#cat test.txt
  nfs-utils  
  </code></pre>
  
  <p>execution of the script reports the following error </p>
  
  <pre><code>]# python package-download.py
  Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
  Error: Need to pass a list of pkgs to install
   Mini usage:
  
  install PACKAGE...
  
  Install a package or packages on your system
  
  aliases: install-n, install-na, install-nevra
  </code></pre>
  
  <p>The yum utility works fine outside the python script</p>
  
  <pre><code># yum install --downloadonly --downloaddir=/root/packages-download  nfs-utils
  Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
  Resolving Dependencies
  --&gt; Running transaction check
  ---&gt; Package nfs-utils.ppc64 1:1.3.0-0.54.el7 will be installed
  +++++++++++++ output truncated++++++++++++++++++++++
  </code></pre>