View Full Version : [SOLVED] [Python} os.system("sudo apt-get install")

April 3rd, 2011, 07:54 AM
When I install a program to the user's computer from python, will it go through the install process:

Tell how far the installation has gone, like a normal sudo apt-get install

and then continue running my program


will it continue running my program as soon as the command is issued to the system?

April 3rd, 2011, 08:24 AM
Just tried this using Putty (Have been wanting to install forever) It runs all the way through the install process before continuing to run the program. Thanks guys :-)

April 3rd, 2011, 01:03 PM
Maybe you should take a look at the apt-get API.

April 3rd, 2011, 04:07 PM
Actually apt has a python library (python-apt) and a dbus interface (use d-feet to examine it).

Thus, you don't need to use os.system to call apt-get.