How To Install ipcalc-ng on Debian 12

Learn how to install ipcalc-ng on Debian 12 with this tutorial. ipcalc-ng is parameter calculator for IPv4 and IPv6 addresses

Introduction

In this tutorial we learn how to install ipcalc-ng on Debian 12.

What is ipcalc-ng

ipcalc-ng is:

This is a modern console tool to assist in network address calculations for IPv4 and IPv6.

It acts as a tool to output human readable information about a network or address, as well as a tool suitable to be used by scripts or other programs.

It’s also a great tool for teach about network address calculations, as well as learn about it.

It supports printing a summary about the provided network address, multiple command line options per information to be printed, transparent IPv6 support, and in addition it will use libGeoIP, if available, to provide geographic information.

There are three methods to install ipcalc-ng on Debian 12. 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-ng 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-ng using apt-get by running the following command:

sudo apt-get -y install ipcalc-ng

Install ipcalc-ng Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ipcalc-ng

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

sudo aptitude -y install ipcalc-ng

How To Uninstall ipcalc-ng on Debian 12

To uninstall only the ipcalc-ng package we can use the following command:

sudo apt-get remove ipcalc-ng

Uninstall ipcalc-ng And Its Dependencies

To uninstall ipcalc-ng and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove ipcalc-ng

Remove ipcalc-ng Configurations and Data

To remove ipcalc-ng configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge ipcalc-ng

Remove ipcalc-ng configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ipcalc-ng

Dependencies

ipcalc-ng have the following dependencies:

References

Summary

In this tutorial we learn how to install ipcalc-ng package on Debian 12 using different package management tools: apt, apt-get and aptitude.