Ways to Install and Uninstall driftnet Ubuntu 22.04

Updated: September 5, 2022

Inspired by EtherPEG, Driftnet is a program which listens to network traffic and picks out images from TCP streams it observes. It is interesting to run it on a host which sees a lot of web traffic. In this tutorial, I will show you how to install driftnet on Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install driftnet on Ubuntu 22.04

Install driftnet Ubuntu 22.04

driftnet 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 driftnet 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 steps to install driftnet on your Ubuntu 22.04.

Step 1: 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 the package installation on Ubuntu 22.04. After updating, you can install driftnet Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install driftnet

Install driftnet 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

Then, you can now install driftnet by 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 this Linux command:

sudo apt update

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

sudo aptitude -y install driftnet

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

sudo apt remove --auto-remove driftnet

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

sudo apt autoremove --purge driftnet


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