How To Install elfutils on Fedora 34

elfutils is A collection of utilities and DSOs to handle ELF files and DWARF data

Introduction

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

What is elfutils

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 or dnf to install elfutils on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install elfutils.

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

sudo dnf -y install elfutils

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

sudo yum -y install elfutils

How To Uninstall elfutils on Fedora 34

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

sudo dnf remove elfutils

elfutils Package Contents on Fedora 34

/usr/bin/eu-addr2line
/usr/bin/eu-ar
/usr/bin/eu-elfclassify
/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/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/061b78f740ed64c3fc45b5afb91a8ca64f3b2a
/usr/lib/.build-id/11
/usr/lib/.build-id/11/b55d54269fcfd852f5f84bac8f08536a1fabe8
/usr/lib/.build-id/13
/usr/lib/.build-id/13/e84ad4e41deb064dbbf119016b8270da76fbee
/usr/lib/.build-id/42
/usr/lib/.build-id/42/4c68b4524a7b978dcfe2ea68be37b69f74d6d6
/usr/lib/.build-id/62
/usr/lib/.build-id/62/f4617cc5ed7252a091f35d08dbf6fa4895456e
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/8d0c0a7e1bc3b60dfe2a472fe9ef838d501ea3
/usr/lib/.build-id/80
/usr/lib/.build-id/80/834b425b70d3a7b96f75d743ad94ec810a2a28
/usr/lib/.build-id/81
/usr/lib/.build-id/81/97784885ddf3c4a2923f95c9a221abc96e3b02
/usr/lib/.build-id/85
/usr/lib/.build-id/85/29311b2ebffeeb47bcea0f29d0a7838d1628e1
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/cd8599f0d4bfd8ff8f3a8c37fde2bb8ee16534
/usr/lib/.build-id/96
/usr/lib/.build-id/96/5860ab94add336c8f17a9e41356feb6a4cc214
/usr/lib/.build-id/99
/usr/lib/.build-id/99/2c7f0f3a0a43314f541a69a2a42a075a437287
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/092359e09e78e38270661ef073497a22a8c13e
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/008acd8d5ea202a9a1a35d38849c0120d5fd80
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/33e1da37df079c03835d52c5637a9247435a2e
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/668391cba2ed9b5666916b36a9489b9611a371
/usr/share/doc/elfutils
/usr/share/doc/elfutils/CONTRIBUTING
/usr/share/doc/elfutils/README
/usr/share/doc/elfutils/TODO
/usr/share/licenses/elfutils
/usr/share/licenses/elfutils/COPYING
/usr/share/licenses/elfutils/COPYING-GFDL
/usr/share/licenses/elfutils/COPYING-GPLV2
/usr/share/licenses/elfutils/COPYING-LGPLV3
/usr/share/man/man1/eu-elfclassify.1.gz
/usr/share/man/man1/eu-readelf.1.gz
/usr/bin/eu-addr2line
/usr/bin/eu-ar
/usr/bin/eu-elfclassify
/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/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/cb856b58e45140a8058fe5af4a335856bf145b
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/58c126bda9c2142008c3845759d002f005ee67
/usr/lib/.build-id/3b/68e61c04c8c02513a124f301bafdce346ecbc0
/usr/lib/.build-id/48
/usr/lib/.build-id/48/a79b1bc859f375f823ccdff65f6b6a7ca3206e
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/03b936677d1265cad0af9388136da12f074193
/usr/lib/.build-id/61
/usr/lib/.build-id/61/85424adb53b8a786fda2b2ef725438faa2282f
/usr/lib/.build-id/71
/usr/lib/.build-id/71/4ca8481f049f0fdbe13e4219e781bf2930da6b
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/3a16336926142bfffe537e79e338a869192ef0
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/44b87c1404dfa2b33cfa1bc9d34543dfd6151a
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/447da916c11353284065381cfa4bb77f915dc3
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/79fb98470ee3cfb6d9f280c8b78b7f6b33950c
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/72e6a222cbde30f11f4ef7710b7b277e229659
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/69e2f40b1e14f20c3611678fae4ba46a0bbceb
/usr/lib/.build-id/db
/usr/lib/.build-id/db/4e55c53b7a1fe2b2e48d2495d2b99a724139ad
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/1674db566dbc73510e73374b5324ae183f30b9
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/300b90986162409639eaf3b94fc84dfe27bac7
/usr/share/doc/elfutils
/usr/share/doc/elfutils/CONTRIBUTING
/usr/share/doc/elfutils/README
/usr/share/doc/elfutils/TODO
/usr/share/licenses/elfutils
/usr/share/licenses/elfutils/COPYING
/usr/share/licenses/elfutils/COPYING-GFDL
/usr/share/licenses/elfutils/COPYING-GPLV2
/usr/share/licenses/elfutils/COPYING-LGPLV3
/usr/share/man/man1/eu-elfclassify.1.gz
/usr/share/man/man1/eu-readelf.1.gz

References

Summary

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