Coder Social home page Coder Social logo

aklahara / pythonupdater Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 29 KB

Ubuntu exclusive python updater for people not using LTS and those who enjoy building from source.

License: GNU General Public License v3.0

Shell 100.00%
python python-updater shell-script ubuntu updater

pythonupdater's Introduction

Python Updater for Ubuntu

This script updates all active releases of Python, even the pre-release ones. This is for people who can't use ppa:deadsnakes because you are an update freak like me and not using LTS.

If you have a script that runs on an end of life Python version, it's best to find another repository that hasn't been abandoned for over 5 years.


Feel free to contribute your code, if anyone sees this at all.


How does this work?

  1. Using wget, release information is extracted from the Python download and pre-release pages.
  2. Using a bunch of greps, a list of all releases is generated. The list is sorted with sort -Vr, so the newest version is head -n 1.
  3. Your python version is checked, if it does not exist, the version will be None.
  4. All active Python versions will be updated/installed based on that information.

Note: All python will be installed in /usr/local/bin so it doesn't interfere with the system's python3 (For noobs: Don't change the system python version, it breaks things).


Tutorial

For Ubuntu:

First time only:

sudo bash -c 'CODENAME=$(grep -oP "CODENAME=\K\w+" < /etc/lsb-release); echo "deb-src http://archive.ubuntu.com/ubuntu/ $CODENAME main restricted" >> /etc/apt/sources.list'

Optional:

sudo su  # Activate root if you don't want to type passwords

Run:

sudo chmod +x UpdatePython.sh
sudo chmod +x InstallPython.sh
./UpdatePython.sh

For Windows:

  1. Go to Windows app store
  2. Download your Python version
  3. UPDATE IT WITH THE UPDATE BUTTON

pythonupdater's People

Contributors

aklahara avatar unsystemizer avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.