How to Uninstall or Install bpfmon Ubuntu 22.04

Updated: September 2, 2022

While tcpdump shows what packets are going through the network, bpfmon will show how much in terms of bytes per second and packets per second in a nice pseudo-graphical terminal interface. In this guide, I will show you how to install bpfmon on Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install bpfmon on Ubuntu 22.04

Install bpfmon Ubuntu 22.04

bpfmon 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 bpfmon 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 steps to install bpfmon 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. Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install bpfmon Ubuntu by executing this command in the terminal.

sudo apt install bpfmon

Install bpfmon using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing aptitude, you can now install bpfmon, just following these steps:

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

sudo apt update

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

sudo aptitude -y install bpfmon

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

sudo apt remove --auto-remove bpfmon

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

sudo apt autoremove --purge bpfmon

Conclusion

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