How To Install elfutils.x86_64 on Amazon Linux 2

In this tutorial we learn how to install elfutils.x86_64 in Amazon Linux 2. elfutils.x86_64 is A collection of utilities and DSOs to handle ELF files and DWARF

Introduction

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

What is elfutils.x86_64

Elfutils is a collection of utilities, including stack (to show backtraces), nm (for listing symbols from object files), size (for listing the section sizes of an object or archive file), strip (for discarding symbols), readelf (to see the raw ELF file structures), elflint (to check for well-formed ELF files) and elfcompress (to compress or decompress ELF sections).

We can use yum to install elfutils.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.x86_64.

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

sudo yum -y install elfutils.x86_64

How To Uninstall elfutils.x86_64 on Amazon Linux 2

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

sudo yum remove elfutils.x86_64

elfutils.x86_64 Package Contents on Amazon Linux 2

/usr/bin/eu-addr2line
/usr/bin/eu-ar
/usr/bin/eu-elfcmp
/usr/bin/eu-elfcompress
/usr/bin/eu-elflint
/usr/bin/eu-findtextrel
/usr/bin/eu-make-debug-archive
/usr/bin/eu-nm
/usr/bin/eu-objdump
/usr/bin/eu-ranlib
/usr/bin/eu-readelf
/usr/bin/eu-size
/usr/bin/eu-stack
/usr/bin/eu-strings
/usr/bin/eu-strip
/usr/bin/eu-unstrip
/usr/share/doc/elfutils-0.176
/usr/share/doc/elfutils-0.176/CONTRIBUTING
/usr/share/doc/elfutils-0.176/README
/usr/share/doc/elfutils-0.176/TODO
/usr/share/licenses/elfutils-0.176
/usr/share/licenses/elfutils-0.176/COPYING
/usr/share/licenses/elfutils-0.176/COPYING-GPLV2
/usr/share/licenses/elfutils-0.176/COPYING-LGPLV3

References

Summary

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