How to use Python3 to apt-get install packages?

MostHated
MostHated used Ask the Experts™
on
Hello all,
    I am trying to make a Python3 script to install packages using apt-get (just git for now) but can not find much information on it for some reason. Most everything I come across is for Python 2.x, should I just stick to using that instead?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Duncan RoeSoftware Developer

Commented:
I would. Python 3 just doesn't seem to have caught on yet. Odd really, because it's been around for years.
IT Manager
Commented:
It seems like Bash itself might actually just end up being better for installing packages and what not. I guess I could use Bash to trigger python scripts if I need them for anything specific like modifying files, or what not, instead of just doing the whole thing using it.
Duncan RoeSoftware Developer

Commented:
The author came up with the best solution

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial