How To Install glibc-nss-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install glibc-nss-devel.x86_64 in Amazon Linux 2. glibc-nss-devel.x86_64 is Development files for directly linking NSS service modules

Introduction

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

What is glibc-nss-devel.x86_64

The glibc-nss-devel package contains the object files necessary to compile applications and libraries which directly link against NSS modules supplied by glibc. This is a rare and special use case; regular development has to use the glibc-devel package instead.

We can use yum to install glibc-nss-devel.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-nss-devel.x86_64.

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

sudo yum -y install glibc-nss-devel.x86_64

How To Uninstall glibc-nss-devel.x86_64 on Amazon Linux 2

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

sudo yum remove glibc-nss-devel.x86_64

glibc-nss-devel.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libnss_compat.so
/usr/lib64/libnss_db.so
/usr/lib64/libnss_dns.so
/usr/lib64/libnss_files.so
/usr/lib64/libnss_hesiod.so
/usr/lib64/libnss_nis.so
/usr/lib64/libnss_nisplus.so

References

Summary

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