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 si
For this particular task, as an alternative to subprocess you might consider using Fabric, a python deployment tool to automate builds.
subprocess