How To Install libmnl.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libmnl.x86_64 in Amazon Linux 2. libmnl.x86_64 is A minimalistic Netlink library

Introduction

In this tutorial we learn how to install libmnl.x86_64 on Amazon Linux 2.

What is libmnl.x86_64

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.

We can use yum to install libmnl.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libmnl.x86_64.

Install libmnl.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libmnl.x86_64 using yum by running the following command:

sudo yum -y install libmnl.x86_64

How To Uninstall libmnl.x86_64 on Amazon Linux 2

To uninstall only the libmnl.x86_64 package we can use the following command:

sudo yum remove libmnl.x86_64

libmnl.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libmnl.so.0
/usr/lib64/libmnl.so.0.1.0
/usr/share/doc/libmnl-1.0.3
/usr/share/doc/libmnl-1.0.3/COPYING
/usr/share/doc/libmnl-1.0.3/README

References

Summary

In this tutorial we learn how to install libmnl.x86_64 on Amazon Linux 2 using yum.