How To Install galera on CentOS 8
Introduction
In this tutorial we learn how to install galera
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install galera.
Install galera on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install galera
using dnf
by running the following command:
sudo dnf -y install galera
Install galera on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the galera
package we can use the following command:
sudo dnf remove galera
galera Package Contents on CentOS 8
/etc/sysconfig/garb
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/15da3f8abb819ea0c9e9712d15a20a08100519
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/fb455bbfccf3211f064d4eae322266db54b294
/usr/lib/systemd/system/garbd.service
/usr/lib64/galera
/usr/lib64/galera/libgalera_smm.so
/usr/sbin/garbd
/usr/sbin/garbd-wrapper
/usr/share/doc/galera
/usr/share/doc/galera/COPYING
/usr/share/doc/galera/LICENSE.asio
/usr/share/doc/galera/LICENSE.chromium
/usr/share/doc/galera/README
/usr/share/doc/galera/README-MySQL
/etc/sysconfig/garb
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/b8a077d7661540163af0c12f5b4ca7ef2ac834
/usr/lib/.build-id/79
/usr/lib/.build-id/79/b1068ff04e894526a470d692761291354f7033
/usr/lib/systemd/system/garbd.service
/usr/lib64/galera
/usr/lib64/galera/libgalera_smm.so
/usr/sbin/garbd
/usr/sbin/garbd-wrapper
/usr/share/doc/galera
/usr/share/doc/galera/COPYING
/usr/share/doc/galera/LICENSE.asio
/usr/share/doc/galera/LICENSE.chromium
/usr/share/doc/galera/README
/usr/share/doc/galera/README-MySQL
References
Summary
In this tutorial we learn how to install galera
on CentOS 8 using yum and dnf.