How To Install libnfnetlink-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libnfnetlink-devel.x86_64 in Amazon Linux 2. libnfnetlink-devel.x86_64 is Netfilter netlink userspace library

Introduction

In this tutorial we learn how to install libnfnetlink-devel.x86_64 on Amazon Linux 2.

libnfnetlink is a userspace library that provides some low-level nfnetlink handling functions. It is used as a foundation for other, netfilter subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log and libnfnetlink_queue.

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

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libnfnetlink-devel.x86_64

To uninstall only the libnfnetlink-devel.x86_64 package we can use the following command:

sudo yum remove libnfnetlink-devel.x86_64
/usr/include/libnfnetlink
/usr/include/libnfnetlink/libnfnetlink.h
/usr/include/libnfnetlink/linux_nfnetlink.h
/usr/include/libnfnetlink/linux_nfnetlink_compat.h
/usr/lib64/libnfnetlink.so
/usr/lib64/pkgconfig/libnfnetlink.pc

References

Summary

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