Solved

How to use Python3 to apt-get install packages?

Posted on 2016-09-08
3
32 Views
Last Modified: 2016-09-28
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
0
Comment
Question by:MostHated
  • 2
3 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 41791576
I would. Python 3 just doesn't seem to have caught on yet. Odd really, because it's been around for years.
0
 
LVL 1

Accepted Solution

by:
MostHated earned 500 total points (awarded by participants)
ID: 41791688
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.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 41819430
The author came up with the best solution
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now