Solved

How to use Python3 to apt-get install packages?

Posted on 2016-09-08
3
41 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
If you don't know how to downgrade, my instructions below should be helpful.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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