How To Install hatools on Fedora 36

In this tutorial we learn how to install hatools in Fedora 36. hatools is Improved shell scripting in High Availability environment

Introduction

In this tutorial we learn how to install hatools on Fedora 36.

What is hatools

The HA-Tools provide some programs to improve shell scripting in a High Availability environment. The halockrun program provides a simple and reliable way to implement a locking in shell scripts. A typical usage for halockrun is to prevent cronjobs to run simultanously. halockrun uses a lock on a file via fcntl(2) which ensures the release of the lock even if the process gets killed via SIGKILL. The hatimerun program provides a time-out mechanism which can be used from shell scripts.

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

Install hatools on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install hatools using dnf by running the following command:

sudo dnf -y install hatools

Install hatools on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install hatools using yum by running the following command:

sudo yum -y install hatools

How To Uninstall hatools on Fedora 36

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

sudo dnf remove hatools

hatools Package Contents on Fedora 36

/usr/bin/halockrun
/usr/bin/hatimerun
/usr/lib/.build-id
/usr/lib/.build-id/81
/usr/lib/.build-id/81/662b54c4f78de4a8969e4e0bed7f1367d0f6ed
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/bc904310f9dc2e962fd4353e5043abf95d1753
/usr/share/doc/hatools
/usr/share/doc/hatools/AUTHORS
/usr/share/doc/hatools/COPYING
/usr/share/doc/hatools/ChangeLog
/usr/share/doc/hatools/NEWS
/usr/share/doc/hatools/README
/usr/share/man/man1/halockrun.1.gz
/usr/share/man/man1/hatimerun.1.gz

References

Summary

In this tutorial we learn how to install hatools on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).