How To Install conntrack-tools on AlmaLinux 8

In this tutorial we learn how to install conntrack-tools in AlmaLinux 8. conntrack-tools is Manipulate netfilter connection tracking table and run High Availability

Introduction

In this tutorial we learn how to install conntrack-tools on AlmaLinux 8.

What is conntrack-tools

With conntrack-tools you can setup a High Availability cluster and synchronize conntrack state between multiple firewalls. The conntrack-tools package contains two programs - conntrack tracking system. - conntrackd deploy highly available GNU/Linux firewalls and collect statistics of the firewall use. conntrack is used to search, list, inspect and maintain the netfilter connection tracking subsystem of the Linux kernel. Using conntrack, you can dump a list of all (or a filtered selection of) currently tracked connections, delete connections from the state table, and even add new ones. In addition, you can also monitor connection tracking events, e.g. show an event message (one line) per newly established connection.

We can use yum or dnf to install conntrack-tools on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install conntrack-tools.

Install conntrack-tools on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install conntrack-tools

Install conntrack-tools on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install conntrack-tools using yum by running the following command:

sudo yum -y install conntrack-tools

How To Uninstall conntrack-tools on AlmaLinux 8

To uninstall only the conntrack-tools package we can use the following command:

sudo dnf remove conntrack-tools

References

Summary

In this tutorial we learn how to install conntrack-tools on AlmaLinux 8 using yum and dnf.