How To Install gcc10-c++.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install gcc10-c++.x86_64 on Amazon Linux 2.
What is gcc10-c++.x86_64
This package adds C++ support to the GNU Compiler Collection version 10. It includes support for most of the current C++ specification, including templates and exception handling.
We can use yum to install gcc10-c++.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gcc10-c++.x86_64.
Install gcc10-c++.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install gcc10-c++.x86_64 using yum by running the following command:
sudo yum -y install gcc10-c++.x86_64
How To Uninstall gcc10-c++.x86_64 on Amazon Linux 2
To uninstall only the gcc10-c++.x86_64 package we can use the following command:
sudo yum remove gcc10-c++.x86_64
gcc10-c++.x86_64 Package Contents on Amazon Linux 2
/usr/bin/gcc10-c++
/usr/bin/gcc10-g++
/usr/bin/x86_64-redhat-linux-gcc10-c++
/usr/bin/x86_64-redhat-linux-gcc10-g++
/usr/lib/gcc
/usr/lib/gcc/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/10
/usr/lib/gcc/x86_64-redhat-linux/10/32
/usr/lib/gcc/x86_64-redhat-linux/10/32/libstdc++.a
/usr/lib/gcc/x86_64-redhat-linux/10/32/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/10/32/libstdc++_nonshared.a
/usr/lib/gcc/x86_64-redhat-linux/10/32/libstdc++fs.a
/usr/lib/gcc/x86_64-redhat-linux/10/32/libsupc++.a
/usr/lib/gcc/x86_64-redhat-linux/10/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/10/libsupc++.a
/usr/libexec/gcc
/usr/libexec/gcc/x86_64-redhat-linux
/usr/libexec/gcc/x86_64-redhat-linux/10
/usr/libexec/gcc/x86_64-redhat-linux/10/cc1plus
/usr/share/man/man1/gcc10-g++.1.gz
References
Summary
In this tutorial we learn how to install gcc10-c++.x86_64 on Amazon Linux 2 using yum.