How To Install nss_db.x86_64 on Amazon Linux 2

In this tutorial we learn how to install nss_db.x86_64 in Amazon Linux 2. nss_db.x86_64 is Name Service Switch (NSS) module using hash-indexed files

Introduction

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

What is nss_db.x86_64

The nss_db Name Service Switch module uses hash-indexed files in /var/db to speed up user, group, service, host name, and other NSS-based lookups.

We can use yum to install nss_db.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_db.x86_64.

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

sudo yum -y install nss_db.x86_64

How To Uninstall nss_db.x86_64 on Amazon Linux 2

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

sudo yum remove nss_db.x86_64

nss_db.x86_64 Package Contents on Amazon Linux 2

/lib64/libnss_db-2.26.so
/lib64/libnss_db.so.2
/var/db/Makefile

References

Summary

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