How To Install libnet-ip-xs-perl on Debian 9
Introduction
In this tutorial we learn how to install libnet-ip-xs-perl
on Debian 9.
What is libnet-ip-xs-perl
libnet-ip-xs-perl is:
Net::IP::XS is a XS (C) implementation of Net::IP (libnet-ip-perl in Debian) that provides functions to deal with IPv4/IPv6 addresses.
The module can be used as a class, allowing the user to instantiate IP objects, which can be single IP addresses, prefixes, or ranges of addresses. There is also a procedural way of accessing most of the functions. Most subroutines can take either IPv4 or IPv6 addresses transparently.
There are three methods to install libnet-ip-xs-perl
on Debian 9. 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-ip-xs-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libnet-ip-xs-perl
using apt-get
by running the following command:
sudo apt-get -y install libnet-ip-xs-perl
Install libnet-ip-xs-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnet-ip-xs-perl
using apt
by running the following command:
sudo apt -y install libnet-ip-xs-perl
Install libnet-ip-xs-perl 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libnet-ip-xs-perl
using aptitude
by running the following command:
sudo aptitude -y install libnet-ip-xs-perl
How To Uninstall libnet-ip-xs-perl on Debian 9
To uninstall only the libnet-ip-xs-perl
package we can use the following command:
sudo apt-get remove libnet-ip-xs-perl
Uninstall libnet-ip-xs-perl And Its Dependencies
To uninstall libnet-ip-xs-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libnet-ip-xs-perl
Remove libnet-ip-xs-perl Configurations and Data
To remove libnet-ip-xs-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libnet-ip-xs-perl
Remove libnet-ip-xs-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-ip-xs-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnet-ip-xs-perl
Dependencies
libnet-ip-xs-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libnet-ip-xs-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.