How To Install nscd.x86_64 on Amazon Linux 2

In this tutorial we learn how to install nscd.x86_64 in Amazon Linux 2. nscd.x86_64 is A Name Service Caching Daemon (nscd).

Introduction

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

What is nscd.x86_64

Nscd caches name service lookups and can dramatically improve performance with NIS+, and may help with DNS as well.

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

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

sudo yum -y install nscd.x86_64

How To Uninstall nscd.x86_64 on Amazon Linux 2

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

sudo yum remove nscd.x86_64

nscd.x86_64 Package Contents on Amazon Linux 2

/etc/nscd.conf
/etc/sysconfig/nscd
/lib/systemd/system/nscd.service
/lib/systemd/system/nscd.socket
/usr/lib/tmpfiles.d/nscd.conf
/usr/sbin/nscd
/var/db/nscd
/var/db/nscd/group
/var/db/nscd/hosts
/var/db/nscd/passwd
/var/db/nscd/services
/var/run/nscd
/var/run/nscd/group
/var/run/nscd/hosts
/var/run/nscd/nscd.pid
/var/run/nscd/passwd
/var/run/nscd/services
/var/run/nscd/socket

References

Summary

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