How To Install net-tools on Kali Linux

In this tutorial we learn how to install net-tools on Kali Linux. net-tools is NET-3 networking toolkit

Introduction

In this tutorial we learn how to install net-tools on Kali Linux.

What is net-tools

net-tools is:

This package includes the important tools for controlling the network subsystem of the Linux kernel. This includes arp, ifconfig, netstat, rarp, nameif and route. Additionally, this package contains utilities relating to particular network hardware types (plipconfig, slattach, mii-tool) and advanced aspects of IP configuration (iptunnel, ipmaddr).

In the upstream package ‘hostname’ and friends are included. Those are not installed by this package, since there is a special “hostname*.deb”.

There are three methods to install net-tools on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install net-tools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install net-tools

Install net-tools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install net-tools

Install net-tools Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install net-tools

How To Uninstall net-tools on Kali Linux

To uninstall only the net-tools package we can use the following command:

sudo apt-get remove net-tools

Uninstall net-tools And Its Dependencies

To uninstall net-tools and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove net-tools

Remove net-tools Configurations and Data

To remove net-tools configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge net-tools

Remove net-tools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge net-tools

Dependencies

net-tools have the following dependencies:

References

Summary

In this tutorial we learn how to install net-tools package on Kali Linux using different package management tools: apt, apt-get and aptitude.