Ways to Install or Uninstall dnstop Ubuntu 22.04

Updated: September 18, 2022

dnstop is a console tool to analyze and display various tables of DNS traffic. Currently dnstop displays tables of (among others): In this tutorial, I will show you ways to install dnstop Ubuntu 22.04.

Requirements to install

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install dnstop on Ubuntu 22.04

Install dnstop Ubuntu 22.04

dnstop 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 that you think is easy and you can follow.

Install dnstop 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 steps to install dnstop on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install dnstop Ubuntu by executing this command in the terminal.

sudo apt-get -y install dnstop

Install dnstop 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 install aptitude

Then, you can now install dnstop by following these steps:

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

sudo apt-get -y update

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

sudo aptitude install dnstop

Uninstall dnstop on Ubuntu 22.04

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

If you installed dnstop using APT or Aptitude, you could uninstall dnstop on Ubuntu by following this step:

sudo apt remove --auto-remove dnstop

To uninstall dnstop and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge dnstop

Ending

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