How To Install libnetfilter_conntrack on Rocky Linux 8

In this tutorial we learn how to install libnetfilter_conntrack on Rocky Linux 8. libnetfilter_conntrack is Netfilter conntrack userspace library

Introduction

In this tutorial we learn how to install libnetfilter_conntrack on Rocky Linux 8.

What is libnetfilter_conntrack

libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table.

We can use yum or dnf to install libnetfilter_conntrack on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libnetfilter_conntrack.

Install libnetfilter_conntrack on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libnetfilter_conntrack using dnf by running the following command:

sudo dnf -y install libnetfilter_conntrack

Install libnetfilter_conntrack on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libnetfilter_conntrack using yum by running the following command:

sudo yum -y install libnetfilter_conntrack

How To Uninstall libnetfilter_conntrack on Rocky Linux 8

To uninstall only the libnetfilter_conntrack package we can use the following command:

sudo dnf remove libnetfilter_conntrack

libnetfilter_conntrack Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/49741f32b0e0202b77003a12572577e8dbb651
/usr/lib64/libnetfilter_conntrack.so.3
/usr/lib64/libnetfilter_conntrack.so.3.6.0
/usr/share/licenses/libnetfilter_conntrack
/usr/share/licenses/libnetfilter_conntrack/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/897800225315d53d34b2112bcc8e1b3b609721
/usr/lib/libnetfilter_conntrack.so.3
/usr/lib/libnetfilter_conntrack.so.3.6.0
/usr/share/licenses/libnetfilter_conntrack
/usr/share/licenses/libnetfilter_conntrack/COPYING

References

Summary

In this tutorial we learn how to install libnetfilter_conntrack on Rocky Linux 8 using yum and dnf.