Introduction
In this tutorial we learn how to install subnetcalc
on Kali Linux.
What is subnetcalc
subnetcalc is:
SubNetCalc is an IPv4/IPv6 subnet address calculator. For given IPv4 or
IPv6 address and netmask or prefix length, it calculates network address,
broadcast address, maximum number of hosts and host address range. The
output is colourized for better readability (e.g. network part, host part).
Also, it prints the addresses in binary format for better understandability.
Furthermore, it can identify the address type (e.g. multicast, unique local,
site local, etc.) and extract additional information from the address
(e.g. type, scope, interface ID, etc.). Finally, it can generate
IPv6 unique local prefixes.
There are three methods to install subnetcalc
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 subnetcalc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install subnetcalc
using apt-get
by running the following command:
sudo apt-get -y install subnetcalc
Install subnetcalc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install subnetcalc
using apt
by running the following command:
sudo apt -y install subnetcalc
Install subnetcalc 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 subnetcalc
using aptitude
by running the following command:
sudo aptitude -y install subnetcalc
How To Uninstall subnetcalc on Kali Linux
To uninstall only the subnetcalc
package we can use the following command:
sudo apt-get remove subnetcalc
Uninstall subnetcalc And Its Dependencies
To uninstall subnetcalc
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove subnetcalc
Remove subnetcalc Configurations and Data
To remove subnetcalc
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge subnetcalc
Remove subnetcalc configuration, data, and all of its dependencies
We can use the following command to remove subnetcalc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge subnetcalc
Dependencies
subnetcalc have the following dependencies:
References
Summary
In this tutorial we learn how to install subnetcalc
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.