title: Using "apt-get install xxx" inside Python script
body: <p>currently I need to install some package using apt or rpm, according the OS.
  I saw the lib "apt" to update or upgrade the system, but it is possible use it to install a single package?</p>
  
  <p>I was trying to use too "subprocess":</p>
  
  <pre><code>subprocess.Popen('apt-get install -y filetoinstall', shell=True, stdin=None, stdout=None, stderr=None, executable="/bin/bash")
  </code></pre>
  
  <p>But this command shows all process in the shell, I cannot hide it.</p>
  
  <p>Thank you for your help.</p>