How To Install keepalived on CentOS 8
Introduction
In this tutorial we learn how to install keepalived on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install keepalived.
Install keepalived on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install keepalived using yum by running the following command:
sudo yum -y install keepalived
Install keepalived on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install keepalived using dnf by running the following command:
sudo dnf -y install keepalived
How To Uninstall keepalived on CentOS 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 CentOS 8 using yum and dnf.