How To Install libgcc on Rocky Linux 8
Introduction
In this tutorial we learn how to install libgcc
on Rocky Linux 8.
What is libgcc
This package contains GCC shared support library which is needed e.g. for exception handling support.
We can use yum
or dnf
to install libgcc
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libgcc.
Install libgcc 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 libgcc
using dnf
by running the following command:
sudo dnf -y install libgcc
Install libgcc 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 libgcc
using yum
by running the following command:
sudo yum -y install libgcc
How To Uninstall libgcc on Rocky Linux 8
To uninstall only the libgcc
package we can use the following command:
sudo dnf remove libgcc
libgcc Package Contents on Rocky Linux 8
/lib/libgcc_s-8-20200928.so.1
/lib/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/81
/usr/lib/.build-id/81/5708630f039feca9847302e2e7a8f2e215bead
/usr/share/licenses/libgcc
/usr/share/licenses/libgcc/COPYING
/usr/share/licenses/libgcc/COPYING.LIB
/usr/share/licenses/libgcc/COPYING.RUNTIME
/usr/share/licenses/libgcc/COPYING3
/usr/share/licenses/libgcc/COPYING3.LIB
/lib64/libgcc_s-8-20200928.so.1
/lib64/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/7ace9bd43d6aee5f125e1a3e47dfbb8a4882e2
/usr/share/licenses/libgcc
/usr/share/licenses/libgcc/COPYING
/usr/share/licenses/libgcc/COPYING.LIB
/usr/share/licenses/libgcc/COPYING.RUNTIME
/usr/share/licenses/libgcc/COPYING3
/usr/share/licenses/libgcc/COPYING3.LIB
References
Summary
In this tutorial we learn how to install libgcc
on Rocky Linux 8 using yum and dnf.