How To Install withlock on Fedora 36
Introduction
In this tutorial we learn how to install withlock
on Fedora 36.
What is withlock
withlock is a locking wrapper script to make sure that some program isn’t run more than once. It is ideal to prevent periodic jobs spawned by cron from stacking up. The locks created are valid only while the wrapper is running, and thus will never require additional cleanup, even after a reboot. This makes the wrapper safe and easy to use, and much better than implementing half-hearted locking within scripts.
We can use yum
or dnf
to install withlock
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install withlock.
Install withlock 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 withlock
using dnf
by running the following command:
sudo dnf -y install withlock
Install withlock 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 withlock
using yum
by running the following command:
sudo yum -y install withlock
How To Uninstall withlock on Fedora 36
To uninstall only the withlock
package we can use the following command:
sudo dnf remove withlock
withlock Package Contents on Fedora 36
/usr/bin/withlock
/usr/share/doc/withlock
/usr/share/doc/withlock/README.md
/usr/share/licenses/withlock
/usr/share/licenses/withlock/LICENSE-2.0.txt
/usr/share/man/man1/withlock.1.gz
References
Summary
In this tutorial we learn how to install withlock
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).