How To Install perl-File-NFSLock on Fedora 36

In this tutorial we learn how to install perl-File-NFSLock in Fedora 36. perl-File-NFSLock is Perl module to do NFS (or not) locking

Introduction

In this tutorial we learn how to install perl-File-NFSLock on Fedora 36.

What is perl-File-NFSLock

Program based of concept of hard linking of files being atomic across NFS. This concept was mentioned in Mail presented in Mail there – particularly the idea of creating a random local file, hard linking a common file to the local file, and then checking the nlink status. Some ideologies were not complete (uncache mechanism, shared locking) and some coding was even incorrect (wrong stat index). File

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

Install perl-File-NFSLock 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 perl-File-NFSLock using dnf by running the following command:

sudo dnf -y install perl-File-NFSLock

Install perl-File-NFSLock 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 perl-File-NFSLock using yum by running the following command:

sudo yum -y install perl-File-NFSLock

How To Uninstall perl-File-NFSLock on Fedora 36

To uninstall only the perl-File-NFSLock package we can use the following command:

sudo dnf remove perl-File-NFSLock

perl-File-NFSLock Package Contents on Fedora 36

/usr/share/doc/perl-File-NFSLock
/usr/share/doc/perl-File-NFSLock/Changes
/usr/share/doc/perl-File-NFSLock/README
/usr/share/doc/perl-File-NFSLock/examples
/usr/share/doc/perl-File-NFSLock/examples/lock_test
/usr/share/man/man3/File::NFSLock.3pm.gz
/usr/share/perl5/vendor_perl/File
/usr/share/perl5/vendor_perl/File/NFSLock.pm

References

Summary

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