How To Install gcc-c++ on Rocky Linux 8
Introduction
In this tutorial we learn how to install gcc-c++
on Rocky Linux 8.
What is gcc-c++
This package adds C++ support to the GNU Compiler Collection. It includes support for most of the current C++ specification, including templates and exception handling.
We can use yum
or dnf
to install gcc-c++
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-c++.
Install gcc-c++ on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install gcc-c++
using dnf
by running the following command:
sudo dnf -y install gcc-c++
Install gcc-c++ on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install gcc-c++
using yum
by running the following command:
sudo yum -y install gcc-c++
How To Uninstall gcc-c++ on Rocky Linux 8
To uninstall only the gcc-c++
package we can use the following command:
sudo dnf remove gcc-c++
gcc-c++ Package Contents on Rocky Linux 8
/usr/bin/c++
/usr/bin/g++
/usr/bin/x86_64-redhat-linux-c++
/usr/bin/x86_64-redhat-linux-g++
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/16013521cac1ae1db01000107911222a229ac5
/usr/lib/.build-id/39/16013521cac1ae1db01000107911222a229ac5.1
/usr/lib/.build-id/39/16013521cac1ae1db01000107911222a229ac5.2
/usr/lib/.build-id/39/16013521cac1ae1db01000107911222a229ac5.3
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/c47ffa1b6fea02f5bc1fba2cb7289cfc42ed93
/usr/lib/gcc
/usr/lib/gcc/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/8
/usr/lib/gcc/x86_64-redhat-linux/8/32
/usr/lib/gcc/x86_64-redhat-linux/8/32/libstdc++.a
/usr/lib/gcc/x86_64-redhat-linux/8/32/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/8/32/libstdc++fs.a
/usr/lib/gcc/x86_64-redhat-linux/8/32/libsupc++.a
/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.so
/usr/libexec/gcc
/usr/libexec/gcc/x86_64-redhat-linux
/usr/libexec/gcc/x86_64-redhat-linux/8
/usr/libexec/gcc/x86_64-redhat-linux/8/cc1plus
/usr/share/doc/gcc-c++
/usr/share/doc/gcc-c++/ChangeLog-1993.bz2
/usr/share/doc/gcc-c++/ChangeLog-1994.bz2
/usr/share/doc/gcc-c++/ChangeLog-1995.bz2
/usr/share/doc/gcc-c++/ChangeLog-1996.bz2
/usr/share/doc/gcc-c++/ChangeLog-1997.bz2
/usr/share/doc/gcc-c++/ChangeLog-1998.bz2
/usr/share/doc/gcc-c++/ChangeLog-1999.bz2
/usr/share/doc/gcc-c++/ChangeLog-2000.bz2
/usr/share/doc/gcc-c++/ChangeLog-2001.bz2
/usr/share/doc/gcc-c++/ChangeLog-2002.bz2
/usr/share/doc/gcc-c++/ChangeLog-2003.bz2
/usr/share/doc/gcc-c++/ChangeLog-2004.bz2
/usr/share/doc/gcc-c++/ChangeLog-2005.bz2
/usr/share/doc/gcc-c++/ChangeLog-2006.bz2
/usr/share/doc/gcc-c++/ChangeLog-2007.bz2
/usr/share/doc/gcc-c++/ChangeLog-2008.bz2
/usr/share/doc/gcc-c++/ChangeLog-2009.bz2
/usr/share/doc/gcc-c++/ChangeLog-2010.bz2
/usr/share/doc/gcc-c++/ChangeLog-2011.bz2
/usr/share/doc/gcc-c++/ChangeLog-2012.bz2
/usr/share/doc/gcc-c++/ChangeLog-2013.bz2
/usr/share/doc/gcc-c++/ChangeLog-2014.bz2
/usr/share/doc/gcc-c++/ChangeLog-2015.bz2
/usr/share/doc/gcc-c++/ChangeLog-2016.bz2
/usr/share/doc/gcc-c++/ChangeLog-2017.bz2
/usr/share/doc/gcc-c++/ChangeLog.bz2
/usr/share/doc/gcc-c++/ChangeLog.ptr.bz2
/usr/share/doc/gcc-c++/ChangeLog.tree-ssa.bz2
/usr/share/man/man1/g++.1.gz
References
Summary
In this tutorial we learn how to install gcc-c++
on Rocky Linux 8 using yum and dnf.