How To Install libgcc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libgcc.x86_64 in Amazon Linux 2. libgcc.x86_64 is GCC version 7 shared support library

Introduction

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

What is libgcc.x86_64

This package contains GCC shared support library which is needed e.g. for exception handling support.

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

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

sudo yum -y install libgcc.x86_64

How To Uninstall libgcc.x86_64 on Amazon Linux 2

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

sudo yum remove libgcc.x86_64

libgcc.x86_64 Package Contents on Amazon Linux 2

/lib64/libgcc_s-7-20180712.so.1
/lib64/libgcc_s.so.1
/usr/share/licenses/libgcc-7.3.1
/usr/share/licenses/libgcc-7.3.1/COPYING
/usr/share/licenses/libgcc-7.3.1/COPYING.LIB
/usr/share/licenses/libgcc-7.3.1/COPYING.RUNTIME
/usr/share/licenses/libgcc-7.3.1/COPYING3
/usr/share/licenses/libgcc-7.3.1/COPYING3.LIB

References

Summary

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