Skip to content

Instantly share code, notes, and snippets.

@fosini
Created July 4, 2018 08:17
Show Gist options
  • Save fosini/b16284d454da4fe77f40885dc1cfb277 to your computer and use it in GitHub Desktop.
Save fosini/b16284d454da4fe77f40885dc1cfb277 to your computer and use it in GitHub Desktop.
Installing newest gcc version on Amazon EC2 version (Ubuntu)
# 1 install old gcc
sudo apt-get install gcc
# 2 add repository
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# 3 update repositories
sudo apt-get update
# 3 install newest gcc
sudo apt-get install gcc-8
# 4 update the gcc link
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment