How To Install net-tools on Kali Linux
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 updateAfter updating apt database, We can install net-tools using apt-get by running the following command:
sudo apt-get -y install net-toolsInstall net-tools Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install net-tools using apt by running the following command:
sudo apt -y install net-toolsInstall 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 updateAfter updating apt database, We can install net-tools using aptitude by running the following command:
sudo aptitude -y install net-toolsHow 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-toolsUninstall 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-toolsRemove 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-toolsRemove 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-toolsDependencies
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.