How To Install keepalived on AlmaLinux 8

In this tutorial we learn how to install keepalived in AlmaLinux 8. keepalived is High Availability monitor built upon LVS, VRRP and service pollers

Introduction

In this tutorial we learn how to install keepalived on AlmaLinux 8.

What is keepalived

Keepalived provides simple and robust facilities for load balancing and high availability to Linux system and Linux based infrastructures. The load balancing framework relies on well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 load balancing. Keepalived implements a set of checkers to dynamically and adaptively maintain and manage load-balanced server pool according their health. High availability is achieved by VRRP protocol. VRRP is a fundamental brick for router failover. In addition, keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. Keepalived frameworks can be used independently or all together to provide resilient infrastructures.

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

Install keepalived 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 keepalived using dnf by running the following command:

sudo dnf -y install keepalived

Install keepalived 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 keepalived using yum by running the following command:

sudo yum -y install keepalived

How To Uninstall keepalived on AlmaLinux 8

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

sudo dnf remove keepalived

References

Summary

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