How to Install or Uninstall nscd Ubuntu 22.04

Updated: September 7, 2022

A daemon which handles passwd, group and host lookups for running programs and caches the results for the next query. You should install this package only if you use slow services like LDAP, NIS or NIS+. In this tutorial, I will show you how to install nscd on Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Check that you can run sudo commands.

Prerequisites to install nscd on Ubuntu 22.04

Install nscd Ubuntu 22.04

nscd is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install nscd using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these instructions to get nscd on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install nscd Ubuntu by pasting this command into the terminal and executing it.

sudo apt install nscd

Install nscd using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

After that, you can now install nscd by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install nscd Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install nscd

Uninstall nscd on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

If you installed nscd using APT or Aptitude, you could uninstall nscd on Ubuntu by running this command

sudo apt remove --auto-remove nscd

If you want to uninstall nscd and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nscd

Ending

In this tutorial, I showed you ways to install nscd on Ubuntu 22.04 and some ways to uninstall nscd too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.