Ways to Install or Uninstall iftop Ubuntu 22.04

Updated: September 4, 2022

iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question “Why is my Internet link so slow?”. In this guide, I will show you ways to install iftop Ubuntu 22.04.

Requirements

  • OS: iftop needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install iftop on Ubuntu 22.04

Install iftop Ubuntu 22.04

iftop 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 iftop using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get iftop on your Ubuntu 22.04.

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. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install iftop Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install iftop

Install iftop 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 iftop 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 update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install iftop Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install iftop

Uninstall iftop on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just iftop.

This command can be used to uninstall iftop from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove iftop

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

sudo apt autoremove --purge iftop

Ending

In this tutorial, I showed you ways to install iftop on Ubuntu 22.04 and some ways to uninstall iftop too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.