?
Solved

How to use Python3 to apt-get install packages?

Posted on 2016-09-08
3
Medium Priority
?
67 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

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 2000 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 35

Expert Comment

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

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
If you don't know how to downgrade, my instructions below should be helpful.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

764 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