How To Install glibc-static.x86_64 on Amazon Linux 2

In this tutorial we learn how to install glibc-static.x86_64 in Amazon Linux 2. glibc-static.x86_64 is C library static libraries for -static linking.

Introduction

In this tutorial we learn how to install glibc-static.x86_64 on Amazon Linux 2.

What is glibc-static.x86_64

The glibc-static package contains the C library static libraries for -static linking. You don’t need these, unless you link statically, which is highly discouraged.

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

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

sudo yum -y install glibc-static.x86_64

How To Uninstall glibc-static.x86_64 on Amazon Linux 2

To uninstall only the glibc-static.x86_64 package we can use the following command:

sudo yum remove glibc-static.x86_64

glibc-static.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libBrokenLocale.a
/usr/lib64/libanl.a
/usr/lib64/libc.a
/usr/lib64/libcrypt.a
/usr/lib64/libdl.a
/usr/lib64/libm-2.26.a
/usr/lib64/libm.a
/usr/lib64/libmvec.a
/usr/lib64/libnsl.a
/usr/lib64/libpthread.a
/usr/lib64/libresolv.a
/usr/lib64/librt.a
/usr/lib64/libutil.a

References

Summary

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