Ways to Install and Uninstall arping on Ubuntu 22.04

Updated: September 18, 2022

The arping utility sends ARP and/or ICMP requests to the specified host and displays the replies. The host may be specified by its hostname, its IP address, or its MAC address. I will show you how to install arping on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • OS: Ubuntu 22.04 is needed for arping to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install arping on Ubuntu 22.04

Install arping Ubuntu 22.04

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

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install arping Ubuntu by executing this command in the terminal.

sudo apt-get install arping

Install arping using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

After that, you can now install arping, just following these steps:

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

sudo apt-get -y update

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

sudo aptitude -y install arping

Uninstall arping 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 arping using APT or Aptitude, you could uninstall arping on Ubuntu by following this step:

sudo apt remove --auto-remove arping

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

sudo apt autoremove --purge arping

Summary

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