How To Install libgcc.i686 on Amazon Linux 2

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

Introduction

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

What is libgcc.i686

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

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

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

sudo yum -y install libgcc.i686

How To Uninstall libgcc.i686 on Amazon Linux 2

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

sudo yum remove libgcc.i686

libgcc.i686 Package Contents on Amazon Linux 2

/lib/libgcc_s-7-20180712.so.1
/lib/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.i686 on Amazon Linux 2 using yum.