How To Install libjs-ipaddr on Kali Linux

In this tutorial we learn how to install libjs-ipaddr on Kali Linux. libjs-ipaddr is IPv4 and IPv6 addresses manipulation - JavaScript library

Introduction

In this tutorial we learn how to install libjs-ipaddr on Kali Linux.

What is libjs-ipaddr

libjs-ipaddr is:

This modules features:

  • verification and parsing of an IP address
  • match against a CIDR range or range list
  • match against reserved ranges like loopback or private ranges
  • conversion between IPv4 and IPv4-mapped IPv6 addresses.

There are three methods to install libjs-ipaddr 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 libjs-ipaddr Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libjs-ipaddr

Install libjs-ipaddr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjs-ipaddr

Install libjs-ipaddr 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 libjs-ipaddr using aptitude by running the following command:

sudo aptitude -y install libjs-ipaddr

How To Uninstall libjs-ipaddr on Kali Linux

To uninstall only the libjs-ipaddr package we can use the following command:

sudo apt-get remove libjs-ipaddr

Uninstall libjs-ipaddr And Its Dependencies

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

sudo apt-get -y autoremove libjs-ipaddr

Remove libjs-ipaddr Configurations and Data

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

sudo apt-get -y purge libjs-ipaddr

Remove libjs-ipaddr configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjs-ipaddr

Dependencies

libjs-ipaddr have the following dependencies:

References

Summary

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