How To Install arp-scan on Ubuntu 20.04

In this tutorial we learn how to install arp-scan on Ubuntu 20.04. arp-scan is arp scanning and fingerprinting tool

Introduction

In this tutorial we learn how to install arp-scan on Ubuntu 20.04.

What is arp-scan

arp-scan is:

arp-scan is a command-line tool that uses the ARP protocol to discover and fingerprint IP hosts on the local network. It is available for Linux and BSD under the GPL licence

There are three methods to install arp-scan on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install arp-scan Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install arp-scan using apt-get by running the following command:

sudo apt-get -y install arp-scan

Install arp-scan Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install arp-scan using apt by running the following command:

sudo apt -y install arp-scan

Install arp-scan Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install arp-scan using aptitude by running the following command:

sudo aptitude -y install arp-scan

How To Uninstall arp-scan on Ubuntu 20.04

To uninstall only the arp-scan package we can use the following command:

sudo apt-get remove arp-scan

Uninstall arp-scan And Its Dependencies

To uninstall arp-scan and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove arp-scan

Remove arp-scan Configurations and Data

To remove arp-scan configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge arp-scan

Remove arp-scan configuration, data, and all of its dependencies

We can use the following command to remove arp-scan configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge arp-scan

References

Summary

In this tutorial we learn how to install arp-scan package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.