How To Install libgccjit on Fedora 34

libgccjit is Library for embedding GCC inside programs and libraries Library for embedding GCC inside programs and libraries

Introduction

In this tutorial we learn how to install libgccjit on Fedora 34.

What is libgccjit

This package contains shared library with GCC JIT front-end. libgccjit 11.2.1 1.fc34 x86_64 8.6 M gcc-11.2.1-1.fc34.src.rpm updates Library for embedding GCC inside programs and libraries http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD This package contains shared library with GCC JIT front-end.

We can use yum or dnf to install libgccjit on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libgccjit.

Install libgccjit 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 libgccjit using dnf by running the following command:

sudo dnf -y install libgccjit

Install libgccjit 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 libgccjit using yum by running the following command:

sudo yum -y install libgccjit

How To Uninstall libgccjit on Fedora 34

To uninstall only the libgccjit package we can use the following command:

sudo dnf remove libgccjit

libgccjit Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/16811b4e1a55d6dfd6e761b9f648fced4b323d
/usr/lib64/libgccjit.so.0
/usr/lib64/libgccjit.so.0.0.1
/usr/share/doc/libgccjit
/usr/share/doc/libgccjit/ChangeLog.bz2
/usr/share/doc/libgccjit/ChangeLog.jit.bz2
/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/da15e7447fdd0650f0f4954265230eb0250606
/usr/lib64/libgccjit.so.0
/usr/lib64/libgccjit.so.0.0.1
/usr/share/doc/libgccjit
/usr/share/doc/libgccjit/ChangeLog.bz2
/usr/share/doc/libgccjit/ChangeLog.jit.bz2
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/f34fbbcae5f11b59da4db54862490d39ca5970
/usr/lib/libgccjit.so.0
/usr/lib/libgccjit.so.0.0.1
/usr/share/doc/libgccjit
/usr/share/doc/libgccjit/ChangeLog.bz2
/usr/share/doc/libgccjit/ChangeLog.jit.bz2
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/eb784e552cd4e152582c68f96d2b72b5f3a90d
/usr/lib/libgccjit.so.0
/usr/lib/libgccjit.so.0.0.1
/usr/share/doc/libgccjit
/usr/share/doc/libgccjit/ChangeLog.bz2
/usr/share/doc/libgccjit/ChangeLog.jit.bz2

References

Summary

In this tutorial we learn how to install libgccjit on Fedora 34 using yum and dnf.