How To Install sanlock on Rocky Linux 8
Introduction
In this tutorial we learn how to install sanlock
on Rocky Linux 8.
What is sanlock
The sanlock daemon manages leases for applications on hosts using shared storage.
We can use yum
or dnf
to install sanlock
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install sanlock.
Install sanlock on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install sanlock
using dnf
by running the following command:
sudo dnf -y install sanlock
Install sanlock on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install sanlock
using yum
by running the following command:
sudo yum -y install sanlock
How To Uninstall sanlock on Rocky Linux 8
To uninstall only the sanlock
package we can use the following command:
sudo dnf remove sanlock
sanlock Package Contents on Rocky Linux 8
/etc/logrotate.d/sanlock
/etc/sanlock
/etc/sanlock/sanlock.conf
/etc/sysconfig/wdmd
/etc/wdmd.d
/run/sanlock
/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/c53262c961fb4c3b5faa70e466c2f069af650c
/usr/lib/.build-id/98
/usr/lib/.build-id/98/1d030d74f9d3514fc39cd3484308e452abd267
/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
/usr/share/doc/sanlock/sanlock
/usr/share/doc/sanlock/sanlock.service
/usr/share/doc/sanlock/wdmd.service
/usr/share/man/man8/sanlock.8.gz
/usr/share/man/man8/wdmd.8.gz
/etc/logrotate.d/sanlock
/etc/sanlock
/etc/sanlock/sanlock.conf
/etc/sysconfig/wdmd
/etc/wdmd.d
/run/sanlock
/usr/lib/.build-id
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/3a45f49514aeec7591e697ebae141fb3f0bdc5
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/9d9d148ea94895cdc2c71edcc7063c72e6b821
/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
/usr/share/doc/sanlock/sanlock
/usr/share/doc/sanlock/sanlock.service
/usr/share/doc/sanlock/wdmd.service
/usr/share/man/man8/sanlock.8.gz
/usr/share/man/man8/wdmd.8.gz
References
Summary
In this tutorial we learn how to install sanlock
on Rocky Linux 8 using yum and dnf.