How To Install nscd on Rocky Linux 8
Introduction
In this tutorial we learn how to install nscd on Rocky Linux 8.
What is nscd
The nscd daemon caches name service lookups and can improve performance with LDAP, and may help with DNS as well.
We can use yum or dnf to install nscd on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nscd.
Install nscd on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install nscd using dnf by running the following command:
sudo dnf -y install nscd
Install nscd on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install nscd using yum by running the following command:
sudo yum -y install nscd
How To Uninstall nscd on Rocky Linux 8
To uninstall only the nscd package we can use the following command:
sudo dnf remove nscd
nscd Package Contents on Rocky Linux 8
/etc/nscd.conf
/etc/sysconfig/nscd
/lib/systemd/system/nscd.service
/lib/systemd/system/nscd.socket
/usr/lib/.build-id
/usr/lib/.build-id/5c/df1cb363d82d27f26310c801b6836813aef0fb
/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 on Rocky Linux 8 using yum and dnf.