How To Install gcc-toolset-10-elfutils on CentOS 8
Introduction
In this tutorial we learn how to install gcc-toolset-10-elfutils
on CentOS 8.
What is gcc-toolset-10-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-10-elfutils
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-toolset-10-elfutils.
Install gcc-toolset-10-elfutils on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install gcc-toolset-10-elfutils
using dnf
by running the following command:
sudo dnf -y install gcc-toolset-10-elfutils
Install gcc-toolset-10-elfutils on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install gcc-toolset-10-elfutils
using yum
by running the following command:
sudo yum -y install gcc-toolset-10-elfutils
How To Uninstall gcc-toolset-10-elfutils on CentOS 8
To uninstall only the gcc-toolset-10-elfutils
package we can use the following command:
sudo dnf remove gcc-toolset-10-elfutils
gcc-toolset-10-elfutils Package Contents on CentOS 8
/opt/rh/gcc-toolset-10/root/usr/bin/eu-addr2line
/opt/rh/gcc-toolset-10/root/usr/bin/eu-ar
/opt/rh/gcc-toolset-10/root/usr/bin/eu-elfclassify
/opt/rh/gcc-toolset-10/root/usr/bin/eu-elfcmp
/opt/rh/gcc-toolset-10/root/usr/bin/eu-elfcompress
/opt/rh/gcc-toolset-10/root/usr/bin/eu-elflint
/opt/rh/gcc-toolset-10/root/usr/bin/eu-findtextrel
/opt/rh/gcc-toolset-10/root/usr/bin/eu-make-debug-archive
/opt/rh/gcc-toolset-10/root/usr/bin/eu-nm
/opt/rh/gcc-toolset-10/root/usr/bin/eu-objdump
/opt/rh/gcc-toolset-10/root/usr/bin/eu-ranlib
/opt/rh/gcc-toolset-10/root/usr/bin/eu-readelf
/opt/rh/gcc-toolset-10/root/usr/bin/eu-size
/opt/rh/gcc-toolset-10/root/usr/bin/eu-stack
/opt/rh/gcc-toolset-10/root/usr/bin/eu-strings
/opt/rh/gcc-toolset-10/root/usr/bin/eu-strip
/opt/rh/gcc-toolset-10/root/usr/bin/eu-unstrip
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-elfutils
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-elfutils/CONTRIBUTING
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-elfutils/README
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10-elfutils/TODO
/opt/rh/gcc-toolset-10/root/usr/share/licenses/gcc-toolset-10-elfutils
/opt/rh/gcc-toolset-10/root/usr/share/licenses/gcc-toolset-10-elfutils/COPYING
/opt/rh/gcc-toolset-10/root/usr/share/licenses/gcc-toolset-10-elfutils/COPYING-GFDL
/opt/rh/gcc-toolset-10/root/usr/share/licenses/gcc-toolset-10-elfutils/COPYING-GPLV2
/opt/rh/gcc-toolset-10/root/usr/share/licenses/gcc-toolset-10-elfutils/COPYING-LGPLV3
/opt/rh/gcc-toolset-10/root/usr/share/man/man1/eu-elfclassify.1.gz
/opt/rh/gcc-toolset-10/root/usr/share/man/man1/eu-readelf.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/cc2c2032be6d23dc2655bfa703c470b7a1f971
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/46c392fc9896f817a5cae23d80c11d4ecfebb8
/usr/lib/.build-id/11
/usr/lib/.build-id/11/592a0c10df60af3723b2f43ce3eaf3e9aa0f91
/usr/lib/.build-id/18
/usr/lib/.build-id/18/59e7c9df367cdd35b89bec621a51fdbdd55864
/usr/lib/.build-id/19
/usr/lib/.build-id/19/4d05b57e5a08ec99f574bc81c0767eef2a7d20
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/66e0281c1460836131405c498f1b857a5f46ab
/usr/lib/.build-id/47
/usr/lib/.build-id/47/fd80bdf40945d250c474e22da7d9b2d6c2a57c
/usr/lib/.build-id/70
/usr/lib/.build-id/70/aa21410aee3709895d9e205cfa26ad033e6f02
/usr/lib/.build-id/79
/usr/lib/.build-id/79/78d8087d74b8d666ecc135c58792c63fc21d9c
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/053e9a18db8b4dbaabe5adb0d116b635ea6c43
/usr/lib/.build-id/96
/usr/lib/.build-id/96/da4d2a0da85d9b74357ec4d7ea5d5404e0a5e9
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/6d2d33d8db6c63759f254fd8186d72aad8c2a5
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/f429116ff159083c41593c1095be6d38e68bf3
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/05f47afe3f2d584791e811bcf6817cdf272403
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/77fe1482e5ff3c8c26b3f0ba93cdd3cd3038e6
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/b896af3a643ff06772e3d6d32f43402ddcb9dd
References
Summary
In this tutorial we learn how to install gcc-toolset-10-elfutils
on CentOS 8 using yum and dnf.