How To Install libgcc on Fedora 36
Introduction
In this tutorial we learn how to install libgcc
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libgcc.
Install libgcc on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the libgcc
package we can use the following command:
sudo dnf remove libgcc
libgcc Package Contents on Fedora 36
/lib64/libgcc_s-12-20220413.so.1
/lib64/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/4e4e492003556b25e1a4572b3c14bbecc0f48e
/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-12-20220507.so.1
/lib64/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/82df1fa0e0de4d8382b75c0fa730e0672f1a47
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).