#!/bin/bash sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install build-essential -y sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y sudo apt-get update -y sudo apt-get install gcc-11 g++-11 -y # if you really want to make use of compiler 11 you could uses this lines #sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11 && #sudo update-alternatives --config gcc