How To Install libgnat on Fedora 34
Introduction
In this tutorial we learn how to install libgnat
on Fedora 34.
What is libgnat
GNAT is a GNU Ada 83, 95, 2005 and 2012 front-end to GCC. This package includes shared libraries, which are required to run programs compiled with the GNAT. libgnat 11.2.1 1.fc34 x86_64 1.4 M gcc-11.2.1-1.fc34.src.rpm updates GNU Ada 83, 95, 2005 and 2012 runtime shared libraries http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD GNAT is a GNU Ada 83, 95, 2005 and 2012 front-end to GCC. This package includes shared libraries, which are required to run programs compiled with the GNAT.
We can use yum
or dnf
to install libgnat
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libgnat.
Install libgnat 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 libgnat
using dnf
by running the following command:
sudo dnf -y install libgnat
Install libgnat 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 libgnat
using yum
by running the following command:
sudo yum -y install libgnat
How To Uninstall libgnat on Fedora 34
To uninstall only the libgnat
package we can use the following command:
sudo dnf remove libgnat
libgnat Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/0d/4ced625c4532fb148e3319ed15f567758fe692
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/a23dc92d60f5769939d9cf932ae14d4a22b585
/usr/lib64/libgnarl-11.so
/usr/lib64/libgnat-11.so
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/96698a568771068dc6cf9956e8f00805a4c982
/usr/lib/.build-id/63
/usr/lib/.build-id/63/1c5133cd556e6a14bf6ff2c182a07b52b24235
/usr/lib/libgnarl-11.so
/usr/lib/libgnat-11.so
/usr/lib/.build-id
/usr/lib/.build-id/52
/usr/lib/.build-id/52/44edf973dc71829af7c57581db6086bc3d1384
/usr/lib/.build-id/e2/94358a1fb610ddd4570560a71026d2f359c9a2
/usr/lib/libgnarl-11.so
/usr/lib/libgnat-11.so
/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/2b1124b5d7fcf3ba347247ee148022e29af407
/usr/lib/.build-id/83
/usr/lib/.build-id/83/154bab7c6b0c8e6af68f77c22833d1804cb3e7
/usr/lib64/libgnarl-11.so
/usr/lib64/libgnat-11.so
References
- [libgnat website](http://gcc.gnu.org http://gcc.gnu.org)
Summary
In this tutorial we learn how to install libgnat
on Fedora 34 using yum and dnf.