How To Install libgnat.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libgnat.x86_64 in Amazon Linux 2. libgnat.x86_64 is GNU Ada 83, 95, 2005 and 2012 runtime shared libraries

Introduction

In this tutorial we learn how to install libgnat.x86_64 on Amazon Linux 2.

What is libgnat.x86_64

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 to install libgnat.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libgnat.x86_64.

Install libgnat.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libgnat.x86_64 using yum by running the following command:

sudo yum -y install libgnat.x86_64

How To Uninstall libgnat.x86_64 on Amazon Linux 2

To uninstall only the libgnat.x86_64 package we can use the following command:

sudo yum remove libgnat.x86_64

libgnat.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libgnarl-7.so
/usr/lib64/libgnat-7.so

References

Summary

In this tutorial we learn how to install libgnat.x86_64 on Amazon Linux 2 using yum.