How To Install galera on AlmaLinux 8

In this tutorial we learn how to install galera in AlmaLinux 8. galera is Synchronous multi-master wsrep provider (replication engine)

Introduction

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

What is galera

Galera is a fast synchronous multi-master wsrep provider (replication engine) for transactional databases and similar applications. For more information about wsrep API see http replication engine see http

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

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

sudo dnf -y install galera

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

sudo yum -y install galera

How To Uninstall galera on AlmaLinux 8

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

sudo dnf remove galera

References

Summary

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