How To Install sanlock.x86_64 on Amazon Linux 2

In this tutorial we learn how to install sanlock.x86_64 in Amazon Linux 2. sanlock.x86_64 is A shared storage lock manager

Introduction

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

What is sanlock.x86_64

The sanlock daemon manages leases for applications on hosts using shared storage.

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

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

sudo yum -y install sanlock.x86_64

How To Uninstall sanlock.x86_64 on Amazon Linux 2

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

sudo yum remove sanlock.x86_64

sanlock.x86_64 Package Contents on Amazon Linux 2

/etc/logrotate.d/sanlock
/etc/sanlock
/etc/sanlock/sanlock.conf
/etc/sysconfig/wdmd
/etc/wdmd.d
/usr/lib/systemd/system/sanlock.service
/usr/lib/systemd/system/wdmd.service
/usr/lib/systemd/systemd-wdmd
/usr/sbin/sanlock
/usr/sbin/wdmd
/usr/share/doc/sanlock-3.6.0
/usr/share/doc/sanlock-3.6.0/sanlock
/usr/share/doc/sanlock-3.6.0/sanlock.service
/usr/share/doc/sanlock-3.6.0/wdmd.service
/usr/share/man/man8/sanlock.8.gz
/usr/share/man/man8/wdmd.8.gz
/var/run/sanlock

References

Summary

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