How To Install libstdc++-static on Rocky Linux 8
Introduction
In this tutorial we learn how to install libstdc++-static
on Rocky Linux 8.
What is libstdc++-static
Static libraries for the GNU standard C++ library.
We can use yum
or dnf
to install libstdc++-static
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libstdc++-static.
Install libstdc++-static 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 libstdc++-static
using dnf
by running the following command:
sudo dnf -y install libstdc++-static
Install libstdc++-static 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 libstdc++-static
using yum
by running the following command:
sudo yum -y install libstdc++-static
How To Uninstall libstdc++-static on Rocky Linux 8
To uninstall only the libstdc++-static
package we can use the following command:
sudo dnf remove libstdc++-static
libstdc++-static Package Contents on Rocky Linux 8
/usr/lib/gcc
/usr/lib/gcc/i686-redhat-linux
/usr/lib/gcc/i686-redhat-linux/8
/usr/lib/gcc/i686-redhat-linux/8/libstdc++.a
/usr/lib/gcc/i686-redhat-linux/8/libsupc++.a
/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/libstdc++.a
/usr/lib/gcc/x86_64-redhat-linux/8/libsupc++.a
References
Summary
In this tutorial we learn how to install libstdc++-static
on Rocky Linux 8 using yum and dnf.