Skip to content

Instantly share code, notes, and snippets.

@kuoruan
Last active June 4, 2018 07:43
Show Gist options
  • Save kuoruan/127c8d6dc4e09c0cc07d5adda5066c31 to your computer and use it in GitHub Desktop.
Save kuoruan/127c8d6dc4e09c0cc07d5adda5066c31 to your computer and use it in GitHub Desktop.
Ubuntu PPAs

Preinstall

sudo apt install software-properties-common

Git

sudo add-apt-repository ppa:git-core/ppa

PHP / libsodium / openssl

LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php

python 2.7

sudo add-apt-repository ppa:iacobs/python2.7

GCC 4.9

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9 cpp-4.9

sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --config gcc

sudo update-alternatives --remove-all g++
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo update-alternatives --config g++

OpenJDK

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update 
sudo apt-get install openjdk-8-jdk

sudo update-alternatives --config java
sudo update-alternatives --config javac

Oracle Java 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java8-installer
sudo update-alternatives --config java
sudo update-alternatives --config javac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment