How To Install libstdc++.i686 on Amazon Linux 2

In this tutorial we learn how to install libstdc++.i686 in Amazon Linux 2. libstdc++.i686 is GNU Standard C++ Library

Introduction

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

What is libstdc++.i686

The libstdc++ package contains a rewritten standard compliant GCC Standard C++ Library.

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

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

sudo yum -y install libstdc++.i686

How To Uninstall libstdc++.i686 on Amazon Linux 2

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

sudo yum remove libstdc++.i686

libstdc++.i686 Package Contents on Amazon Linux 2

/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.24
/usr/share/gcc-7
/usr/share/gcc-7/python
/usr/share/gcc-7/python/libstdcxx
/usr/share/gcc-7/python/libstdcxx/__init__.py
/usr/share/gcc-7/python/libstdcxx/__init__.pyc
/usr/share/gcc-7/python/libstdcxx/__init__.pyo
/usr/share/gcc-7/python/libstdcxx/v6
/usr/share/gcc-7/python/libstdcxx/v6/__init__.py
/usr/share/gcc-7/python/libstdcxx/v6/__init__.pyc
/usr/share/gcc-7/python/libstdcxx/v6/__init__.pyo
/usr/share/gcc-7/python/libstdcxx/v6/printers.py
/usr/share/gcc-7/python/libstdcxx/v6/printers.pyc
/usr/share/gcc-7/python/libstdcxx/v6/printers.pyo
/usr/share/gcc-7/python/libstdcxx/v6/xmethods.py
/usr/share/gcc-7/python/libstdcxx/v6/xmethods.pyc
/usr/share/gcc-7/python/libstdcxx/v6/xmethods.pyo
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.24-gdb.py
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.24-gdb.pyc
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.24-gdb.pyo
/usr/share/locale/de/LC_MESSAGES/libstdc++.mo
/usr/share/locale/fr/LC_MESSAGES/libstdc++.mo

References

Summary

In this tutorial we learn how to install libstdc++.i686 on Amazon Linux 2 using yum.