How To Install gc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gc.x86_64 in Amazon Linux 2. gc.x86_64 is A garbage collector for C and C++

Introduction

In this tutorial we learn how to install gc.x86_64 on Amazon Linux 2.

What is gc.x86_64

The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new.

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

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

sudo yum -y install gc.x86_64

How To Uninstall gc.x86_64 on Amazon Linux 2

To uninstall only the gc.x86_64 package we can use the following command:

sudo yum remove gc.x86_64

gc.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libcord.so.1
/usr/lib64/libcord.so.1.3.0
/usr/lib64/libgc.so.1
/usr/lib64/libgc.so.1.3.2
/usr/lib64/libgccpp.so.1
/usr/lib64/libgccpp.so.1.3.1

References

Summary

In this tutorial we learn how to install gc.x86_64 on Amazon Linux 2 using yum.