How To Install libnet-interface-perl on Kali Linux
Introduction
In this tutorial we learn how to install libnet-interface-perl on Kali Linux.
What is libnet-interface-perl
libnet-interface-perl is:
Net::Interface is a module that allows access to the host network interfaces in a manner similar to ifconfig(8). Version 1.00 is a complete re-write and includes support for IPV6 as well as the traditional IPV4.
Both read and write access to network device attributes including the creation of new logical and physical interfaces is available where supported by the OS and this module.
NOTE: Many of the operations of Net::Interface, particularly those that set interface values require privileged access to OS resources. Wherever possible, Net::Interface will simply fail softly when there are not adequateprivileges to perform the requested operation or where the operation is not supported.
There are three methods to install libnet-interface-perl 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 libnet-interface-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libnet-interface-perl using apt-get by running the following command:
sudo apt-get -y install libnet-interface-perlInstall libnet-interface-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libnet-interface-perl using apt by running the following command:
sudo apt -y install libnet-interface-perlInstall libnet-interface-perl 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 libnet-interface-perl using aptitude by running the following command:
sudo aptitude -y install libnet-interface-perlHow To Uninstall libnet-interface-perl on Kali Linux
To uninstall only the libnet-interface-perl package we can use the following command:
sudo apt-get remove libnet-interface-perlUninstall libnet-interface-perl And Its Dependencies
To uninstall libnet-interface-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libnet-interface-perlRemove libnet-interface-perl Configurations and Data
To remove libnet-interface-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libnet-interface-perlRemove libnet-interface-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-interface-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnet-interface-perlDependencies
libnet-interface-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libnet-interface-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.