How To Install corosync.x86_64 on Amazon Linux 2

In this tutorial we learn how to install corosync.x86_64 in Amazon Linux 2. corosync.x86_64 is The Corosync Cluster Engine and Application Programming Interfaces

Introduction

In this tutorial we learn how to install corosync.x86_64 on Amazon Linux 2.

What is corosync.x86_64

This package contains the Corosync Cluster Engine Executive, several default APIs and libraries, default configuration files, and an init script.

We can use yum to install corosync.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install corosync.x86_64.

Install corosync.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install corosync.x86_64 using yum by running the following command:

sudo yum -y install corosync.x86_64

How To Uninstall corosync.x86_64 on Amazon Linux 2

To uninstall only the corosync.x86_64 package we can use the following command:

sudo yum remove corosync.x86_64

corosync.x86_64 Package Contents on Amazon Linux 2

/etc/corosync
/etc/corosync/corosync.conf.example
/etc/corosync/corosync.conf.example.udpu
/etc/corosync/corosync.xml.example
/etc/corosync/uidgid.d
/etc/dbus-1/system.d/corosync-signals.conf
/etc/logrotate.d/corosync
/etc/sysconfig/corosync
/etc/sysconfig/corosync-notifyd
/usr/bin/corosync-blackbox
/usr/bin/corosync-xmlproc
/usr/lib/systemd/system/corosync-notifyd.service
/usr/lib/systemd/system/corosync.service
/usr/sbin/corosync
/usr/sbin/corosync-cfgtool
/usr/sbin/corosync-cmapctl
/usr/sbin/corosync-cpgtool
/usr/sbin/corosync-keygen
/usr/sbin/corosync-notifyd
/usr/sbin/corosync-quorumtool
/usr/share/corosync
/usr/share/corosync/corosync
/usr/share/corosync/corosync-notifyd
/usr/share/corosync/xml2conf.xsl
/usr/share/doc/corosync-2.4.3
/usr/share/doc/corosync-2.4.3/LICENSE
/usr/share/doc/corosync-2.4.3/SECURITY
/usr/share/man/man5/corosync.conf.5.gz
/usr/share/man/man5/corosync.xml.5.gz
/usr/share/man/man5/votequorum.5.gz
/usr/share/man/man8/cmap_keys.8.gz
/usr/share/man/man8/corosync-blackbox.8.gz
/usr/share/man/man8/corosync-cfgtool.8.gz
/usr/share/man/man8/corosync-cmapctl.8.gz
/usr/share/man/man8/corosync-cpgtool.8.gz
/usr/share/man/man8/corosync-keygen.8.gz
/usr/share/man/man8/corosync-notifyd.8.gz
/usr/share/man/man8/corosync-quorumtool.8.gz
/usr/share/man/man8/corosync-xmlproc.8.gz
/usr/share/man/man8/corosync.8.gz
/usr/share/man/man8/corosync_overview.8.gz
/usr/share/snmp/mibs/COROSYNC-MIB.txt
/var/lib/corosync
/var/log/cluster

References

Summary

In this tutorial we learn how to install corosync.x86_64 on Amazon Linux 2 using yum.