How To Install gcc10-binutils-gold.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gcc10-binutils-gold.x86_64 in Amazon Linux 2. gcc10-binutils-gold.x86_64 is The GOLD linker, a faster alternative to the BFD linker

Introduction

In this tutorial we learn how to install gcc10-binutils-gold.x86_64 on Amazon Linux 2.

What is gcc10-binutils-gold.x86_64

This package provides the GOLD linker, which can be used as an alternative to the default binutils linker (ld.bfd). The GOLD is generally faster than the BFD linker, and it supports features such as Identical Code Folding and Incremental linking. Unfortunately it is not as well maintained as the BFD linker, and it may become deprecated in the future. BuildRequires BuildRequires BuildRequires Conflicts

We can use yum to install gcc10-binutils-gold.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gcc10-binutils-gold.x86_64.

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

sudo yum -y install gcc10-binutils-gold.x86_64

How To Uninstall gcc10-binutils-gold.x86_64 on Amazon Linux 2

To uninstall only the gcc10-binutils-gold.x86_64 package we can use the following command:

sudo yum remove gcc10-binutils-gold.x86_64

gcc10-binutils-gold.x86_64 Package Contents on Amazon Linux 2

/usr/bin/gcc10-ld.gold

References

Summary

In this tutorial we learn how to install gcc10-binutils-gold.x86_64 on Amazon Linux 2 using yum.