How To Install ipcalc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install ipcalc
on Ubuntu 20.04.
What is ipcalc
ipcalc is:
ipcalc takes an IPv4 address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values.
Originally, ipcalc was intended for use from the shell prompt, but a CGI wrapper is provided to enable colorful HTML display through a webserver. You can find it in /usr/share/doc/ipcalc/examples directory.
There are three methods to install ipcalc
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install ipcalc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ipcalc
using apt-get
by running the following command:
sudo apt-get -y install ipcalc
Install ipcalc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ipcalc
using apt
by running the following command:
sudo apt -y install ipcalc
Install ipcalc 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ipcalc
using aptitude
by running the following command:
sudo aptitude -y install ipcalc
How To Uninstall ipcalc on Ubuntu 20.04
To uninstall only the ipcalc
package we can use the following command:
sudo apt-get remove ipcalc
Uninstall ipcalc And Its Dependencies
To uninstall ipcalc
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove ipcalc
Remove ipcalc Configurations and Data
To remove ipcalc
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge ipcalc
Remove ipcalc configuration, data, and all of its dependencies
We can use the following command to remove ipcalc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ipcalc
References
Summary
In this tutorial we learn how to install ipcalc
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.