How To Install libcidr-dev on Kali Linux
Introduction
In this tutorial we learn how to install libcidr-dev
on Kali Linux.
What is libcidr-dev
libcidr-dev is:
libcidr is a C library implementing a variety of functions to manipulate IP addresses and netblocks. It handles both IPv4 and IPv6 networks, will transform them to and from text strings in a variety of formats, cram them into and lever them out of in_addr and in6_addr structures, and give you all sorts of stats about them. Functions are provided also to tell you a few things about the network any given CIDR block is in, what its parent and child networks are, and so on. If you’re really nice, may even cook you breakfast.
This package contains include files and development documentation.
There are three methods to install libcidr-dev
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 libcidr-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libcidr-dev
using apt-get
by running the following command:
sudo apt-get -y install libcidr-dev
Install libcidr-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcidr-dev
using apt
by running the following command:
sudo apt -y install libcidr-dev
Install libcidr-dev 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 libcidr-dev
using aptitude
by running the following command:
sudo aptitude -y install libcidr-dev
How To Uninstall libcidr-dev on Kali Linux
To uninstall only the libcidr-dev
package we can use the following command:
sudo apt-get remove libcidr-dev
Uninstall libcidr-dev And Its Dependencies
To uninstall libcidr-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libcidr-dev
Remove libcidr-dev Configurations and Data
To remove libcidr-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcidr-dev
Remove libcidr-dev configuration, data, and all of its dependencies
We can use the following command to remove libcidr-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcidr-dev
Dependencies
libcidr-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libcidr-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.