How to install g++/c++ in linux ?


How to install g++/cpp in a linux system ?


For debian based pc:


#update task to see if every repo is working in the system 
sudo apt update && upgrade
sudo apt install g++ build-essential


For opensuse distro:


#update task
sudo zypper up
sudo zypper in g++ gcc-c++


For arch linux and other arch linux based distros:


#First update everything !
sudo pacman -Syuu
sudo pacman -S g++ gcc-c++


Comments

Popular Posts