How To Install nss_nis.x86_64 on Amazon Linux 2

In this tutorial we learn how to install nss_nis.x86_64 in Amazon Linux 2. nss_nis.x86_64 is Name Service Switch (NSS) module using NIS

Introduction

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

What is nss_nis.x86_64

The nss_nis and nss_nisplus Name Service Switch modules uses the Network Information System (NIS) to obtain user, group, host name, and other data.

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

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

sudo yum -y install nss_nis.x86_64

How To Uninstall nss_nis.x86_64 on Amazon Linux 2

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

sudo yum remove nss_nis.x86_64

nss_nis.x86_64 Package Contents on Amazon Linux 2

/lib64/libnss_nis-2.26.so
/lib64/libnss_nis.so.2
/lib64/libnss_nisplus-2.26.so
/lib64/libnss_nisplus.so.2

References

Summary

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