How To Install gcc-toolset-10-binutils on AlmaLinux 8

In this tutorial we learn how to install gcc-toolset-10-binutils in AlmaLinux 8. gcc-toolset-10-binutils is A GNU collection of binary utilities

Introduction

In this tutorial we learn how to install gcc-toolset-10-binutils on AlmaLinux 8.

What is gcc-toolset-10-binutils

Binutils is a collection of binary utilities, including ar (for creating, modifying and extracting from archives), as (a family of GNU assemblers), gprof (for displaying call graph profile data), ld (the GNU linker), nm (for listing symbols from object files), objcopy (for copying and translating object files), objdump (for displaying information from object files), ranlib (for generating an index for the contents of an archive), readelf (for displaying detailed information about binary files), size (for listing the section sizes of an object or archive file), strings (for listing printable strings from files), strip (for discarding symbols), and addr2line (for converting addresses to file and line).

We can use yum or dnf to install gcc-toolset-10-binutils on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-toolset-10-binutils.

Install gcc-toolset-10-binutils on AlmaLinux 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-10-binutils using dnf by running the following command:

sudo dnf -y install gcc-toolset-10-binutils

Install gcc-toolset-10-binutils on AlmaLinux 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-10-binutils using yum by running the following command:

sudo yum -y install gcc-toolset-10-binutils

How To Uninstall gcc-toolset-10-binutils on AlmaLinux 8

To uninstall only the gcc-toolset-10-binutils package we can use the following command:

sudo dnf remove gcc-toolset-10-binutils

References

Summary

In this tutorial we learn how to install gcc-toolset-10-binutils on AlmaLinux 8 using yum and dnf.