Ways to Uninstall and Install nsd on Ubuntu 22.04

Updated: September 21, 2022

The NLnet Labs Name Server Daemon (NSD) is an authoritative DNS name server. It has been developed for operations in environments where speed, reliability, stability and security are of high importance. I will show you how to install nsd on Ubuntu 22.04 in this guide.

Prerequisites

  • OS: Ubuntu 22.04 is needed for nsd to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install nsd on Ubuntu 22.04

Install nsd Ubuntu 22.04

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

Install nsd using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install nsd on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install nsd Ubuntu by executing this command in the terminal.

sudo apt -y install nsd

Install nsd using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

Then, you can now install nsd, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install nsd Ubuntu by executing this command in the terminal.

sudo aptitude install nsd

Uninstall nsd on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a nsd.

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

sudo apt remove --auto-remove nsd

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

sudo apt autoremove --purge nsd

Conclusion

In this tutorial, I showed you ways to install nsd on Ubuntu 22.04 and ways to uninstall nsd too. Please contact me if you require any assistance. I’d be delighted to respond.