Skip to content

Instantly share code, notes, and snippets.

@alexandreelise
Last active February 7, 2024 07:18
Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save alexandreelise/192a63e287018ddfc896bbcb70b219d4 to your computer and use it in GitHub Desktop.
Save alexandreelise/192a63e287018ddfc896bbcb70b219d4 to your computer and use it in GitHub Desktop.
Install gcc 9 on Ubuntu LTS 12.04,14.04,16.04 and 18.04

Hi! gcc users

There is good news for you. I made a new repository with a single Dockerfile to build every combinations of versions of Ubuntu LTS and gcc you like

Find out more on https://github.com/alexandreelise/install-gcc

#!/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 && \
sudo update-alternatives --config gcc
select gcc-9
@alexandreelise
Copy link
Author

Thanks for your feedback @Marietto2008 . Will be happy to learn more about networks, blue team defensive security (not so much offensive because too many people already do that and it is not my "taste". I prefer defensive security. Learning how to protect a system rather than "attack" it. I know one cannot exists without the other side of the coin, but again, my focus is on defensive cyber security. jails system might be something to consider will have a look when I get a chance to.

@Marietto2008
Copy link

Marietto2008 commented Jun 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment