How to Install and Uninstall sntop on Ubuntu 22.04

Updated: September 22, 2022

Simple network top (sntop) is a curses-based console utility, in the spirit of top, that polls network hosts at a regular interval to determine their connectivity and displays the results in a pretty format. Advanced features, such as automatic HTML generation of results, secure terminal mode, execution of external file on connectivity change, and user/system configure files, are supported. In this tutorial, I will show you ways to install sntop Ubuntu 22.04.

Software Requirement

  • Operating system: sntop needs Ubuntu 22.04 to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install sntop on Ubuntu 22.04

Install sntop Ubuntu 22.04

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

Install sntop 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 get sntop 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: Start installing the packages on Ubuntu 22.04. After updating, you can install sntop Ubuntu by executing this command in the terminal.

sudo apt install sntop

Install sntop using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

After installing aptitude, you can now install sntop, just 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 update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install sntop Ubuntu by executing this command in the terminal.

sudo aptitude install sntop

Uninstall sntop 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 sntop using APT or Aptitude, you could uninstall sntop on Ubuntu by executing this command

sudo apt remove --auto-remove sntop

You can also execute this command if you want to uninstall sntop and remove its data and dependencies:

sudo apt autoremove --purge sntop

Summary

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