How To Install gcc-toolset-9-elfutils on Rocky Linux 8

In this tutorial we learn how to install gcc-toolset-9-elfutils on Rocky Linux 8. gcc-toolset-9-elfutils is A collection of utilities and DSOs to handle ELF files and DWARF data

Introduction

In this tutorial we learn how to install gcc-toolset-9-elfutils on Rocky Linux 8.

What is gcc-toolset-9-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 gcc-toolset-9-elfutils on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-toolset-9-elfutils.

Install gcc-toolset-9-elfutils on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gcc-toolset-9-elfutils using dnf by running the following command:

sudo dnf -y install gcc-toolset-9-elfutils

Install gcc-toolset-9-elfutils on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gcc-toolset-9-elfutils using yum by running the following command:

sudo yum -y install gcc-toolset-9-elfutils

How To Uninstall gcc-toolset-9-elfutils on Rocky Linux 8

To uninstall only the gcc-toolset-9-elfutils package we can use the following command:

sudo dnf remove gcc-toolset-9-elfutils

gcc-toolset-9-elfutils Package Contents on Rocky Linux 8

/opt/rh/gcc-toolset-9/root/usr/bin/eu-addr2line
/opt/rh/gcc-toolset-9/root/usr/bin/eu-ar
/opt/rh/gcc-toolset-9/root/usr/bin/eu-elfcmp
/opt/rh/gcc-toolset-9/root/usr/bin/eu-elfcompress
/opt/rh/gcc-toolset-9/root/usr/bin/eu-elflint
/opt/rh/gcc-toolset-9/root/usr/bin/eu-findtextrel
/opt/rh/gcc-toolset-9/root/usr/bin/eu-make-debug-archive
/opt/rh/gcc-toolset-9/root/usr/bin/eu-nm
/opt/rh/gcc-toolset-9/root/usr/bin/eu-objdump
/opt/rh/gcc-toolset-9/root/usr/bin/eu-ranlib
/opt/rh/gcc-toolset-9/root/usr/bin/eu-readelf
/opt/rh/gcc-toolset-9/root/usr/bin/eu-size
/opt/rh/gcc-toolset-9/root/usr/bin/eu-stack
/opt/rh/gcc-toolset-9/root/usr/bin/eu-strings
/opt/rh/gcc-toolset-9/root/usr/bin/eu-strip
/opt/rh/gcc-toolset-9/root/usr/bin/eu-unstrip
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-elfutils
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-elfutils/CONTRIBUTING
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-elfutils/README
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-elfutils/TODO
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-elfutils
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-elfutils/COPYING
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-elfutils/COPYING-GPLV2
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-elfutils/COPYING-LGPLV3
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/04cf7017bf0e13fa823e648aa5ddbfa8ebdc70
/usr/lib/.build-id/23
/usr/lib/.build-id/23/bd3a41b23fbf3d4b0cd3c180fd3abfbfccb19a
/usr/lib/.build-id/32
/usr/lib/.build-id/32/e5c963586e89db784a314a4912b8b9d444b27d
/usr/lib/.build-id/39
/usr/lib/.build-id/39/00379289ef04e5f212bdfe0efdab64cad36212
/usr/lib/.build-id/39/a6f76998b1ecab8e23e6372c1f4504e6f8bf7a
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/36b88f610b00343d7039e1e1af91f202960db2
/usr/lib/.build-id/65
/usr/lib/.build-id/65/98997b0d5b8a21a19068d3b78d3893eb504d32
/usr/lib/.build-id/96
/usr/lib/.build-id/96/f35dcae5ddcdab8dd24d263ba505923f620cb3
/usr/lib/.build-id/97
/usr/lib/.build-id/97/42d0bc20a44566f2d2d362a023b083bfe04ce7
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/e00f54917a50431ad08393e850f148e284c60f
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/6364c1f714f26dffe2ffe88b1b89112e5921e0
/usr/lib/.build-id/df
/usr/lib/.build-id/df/f5dcf08baae1643c32bcd318e95f9de68da460
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/1e78cfddbc637730ebbd08cb9849914208998e
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/d55821aeac82d9f69514862ec66793c9316f15
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/b733b738eadb519b335ff9bf67369d527326f4

References

Summary

In this tutorial we learn how to install gcc-toolset-9-elfutils on Rocky Linux 8 using yum and dnf.