install c++ in linux fedaro code example Example: how to install g++ in fedora sudo dnf install gcc-c++