How To Install libmnl0 on Debian 10
Introduction
In this tutorial we learn how to install libmnl0
on Debian 10.
What is libmnl0
libmnl0 is:
libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel.
The main features of this library are:
Small: the shared library requires around 30KB for an x86-based computer.
Simple: this library avoids complexity and elaborated abstractions that tend to hide Netlink details.
Easy to use: the library simplifies the work for Netlink-wise developers. It provides functions to make socket handling, message building, validating, parsing and sequence tracking, easier.
Easy to re-use: you can use the library to build your own abstraction layer on top of this library.
Decoupling: the interdependency of the main bricks that compose the library is reduced, i.e. the library provides many helpers, but the programmer is not forced to use them.
This package contains the shared libraries needed to run programs that use the minimalistic Netlink communication library.
There are three methods to install libmnl0
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libmnl0 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libmnl0
using apt-get
by running the following command:
sudo apt-get -y install libmnl0
Install libmnl0 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmnl0
using apt
by running the following command:
sudo apt -y install libmnl0
Install libmnl0 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 libmnl0
using aptitude
by running the following command:
sudo aptitude -y install libmnl0
How To Uninstall libmnl0 on Debian 10
To uninstall only the libmnl0
package we can use the following command:
sudo apt-get remove libmnl0
Uninstall libmnl0 And Its Dependencies
To uninstall libmnl0
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libmnl0
Remove libmnl0 Configurations and Data
To remove libmnl0
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libmnl0
Remove libmnl0 configuration, data, and all of its dependencies
We can use the following command to remove libmnl0
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmnl0
Dependencies
libmnl0 have the following dependencies:
References
Summary
In this tutorial we learn how to install libmnl0
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.