How To Install elfutils-libelf.x86_64 on Amazon Linux 2

In this tutorial we learn how to install elfutils-libelf.x86_64 in Amazon Linux 2. elfutils-libelf.x86_64 is Library to read and write ELF files

Introduction

In this tutorial we learn how to install elfutils-libelf.x86_64 on Amazon Linux 2.

What is elfutils-libelf.x86_64

The elfutils-libelf package provides a DSO which allows reading and writing ELF files on a high level. Third party programs depend on this package to read internals of ELF files. The programs of the elfutils package use it also to generate new ELF files.

We can use yum to install elfutils-libelf.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install elfutils-libelf.x86_64.

Install elfutils-libelf.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 elfutils-libelf.x86_64 using yum by running the following command:

sudo yum -y install elfutils-libelf.x86_64

How To Uninstall elfutils-libelf.x86_64 on Amazon Linux 2

To uninstall only the elfutils-libelf.x86_64 package we can use the following command:

sudo yum remove elfutils-libelf.x86_64

elfutils-libelf.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libelf-0.176.so
/usr/lib64/libelf.so.1
/usr/share/licenses/elfutils-libelf-0.176
/usr/share/licenses/elfutils-libelf-0.176/COPYING-GPLV2
/usr/share/licenses/elfutils-libelf-0.176/COPYING-LGPLV3
/usr/share/locale/de/LC_MESSAGES/elfutils.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/elfutils.mo
/usr/share/locale/en@quot/LC_MESSAGES/elfutils.mo
/usr/share/locale/es/LC_MESSAGES/elfutils.mo
/usr/share/locale/ja/LC_MESSAGES/elfutils.mo
/usr/share/locale/pl/LC_MESSAGES/elfutils.mo
/usr/share/locale/uk/LC_MESSAGES/elfutils.mo

References

Summary

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