Skip to content

Instantly share code, notes, and snippets.

View gigilka's full-sized avatar
:shipit:
Finding myself

Kuchin Nickita gigilka

:shipit:
Finding myself
View GitHub Profile
@gigilka
gigilka / install-gcc-9.sh
Created March 30, 2023 22:55 — forked from alexandreelise/README.md
Install gcc 9 on Ubuntu LTS 12.04,14.04,16.04 and 18.04
#!/usr/bin/env sh
sudo apt-get update -y && \
sudo apt-get upgrade -y && \
sudo apt-get dist-upgrade -y && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update -y && \
sudo apt-get install gcc-9 g++-9 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \