How To Install libgcc on Fedora 34
Introduction
In this tutorial we learn how to install libgcc
on Fedora 34.
What is libgcc
This package contains GCC shared support library which is needed e.g. for exception handling support. libgcc 11.2.1 1.fc34 i686 116 k gcc-11.2.1-1.fc34.src.rpm updates GCC version 11 shared support library http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD This package contains GCC shared support library which is needed e.g. for exception handling support. libgcc 11.2.1 1.fc34 x86_64 107 k gcc-11.2.1-1.fc34.src.rpm updates GCC version 11 shared support library http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libgcc.
Install libgcc on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libgcc
using dnf
by running the following command:
sudo dnf -y install libgcc
Install libgcc on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the libgcc
package we can use the following command:
sudo dnf remove libgcc
libgcc Package Contents on Fedora 34
/lib/libgcc_s-11-20210324.so.1
/lib/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/27e6946407213aac0689ce8bcd10c5be888f52
/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
/lib/libgcc_s-11-20210728.so.1
/lib/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/568d0dbc18e3a9aa39e2b12aab788cf1695501
/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-11-20210324.so.1
/lib64/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/4cf607084b98580e62036297ff90c9cea1a3ce
/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-11-20210728.so.1
/lib64/libgcc_s.so.1
/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/e10c9ee769c5cfc7cdb638e3ccbc3169c0a949
/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
- [libgcc website](http://gcc.gnu.org http://gcc.gnu.org http://gcc.gnu.org)
Summary
In this tutorial we learn how to install libgcc
on Fedora 34 using yum and dnf.