How To Install lockdev on Fedora 34

lockdev is A library for locking devices A library for locking devices

Introduction

In this tutorial we learn how to install lockdev on Fedora 34.

What is lockdev

Lockdev provides a reliable way to put an exclusive lock to devices using both FSSTND and SVr4 methods. lockdev 1.0.4 0.35.20111007git.fc34 x86_64 33 k lockdev-1.0.4-0.35.20111007git.fc34.src.rpm fedora A library for locking devices https LGPLv2 Lockdev provides a reliable way to put an exclusive lock to devices using both FSSTND and SVr4 methods.

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

Install lockdev on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install lockdev

Install lockdev on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install lockdev

How To Uninstall lockdev on Fedora 34

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

sudo dnf remove lockdev

lockdev Package Contents on Fedora 34

/run/lock/lockdev
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/c53e5715a5113cb36c31997800e629591427f1
/usr/lib/.build-id/de
/usr/lib/.build-id/de/ce6bdb2c3334f2d453bdb57962e1d105106e86
/usr/lib/liblockdev.so.1
/usr/lib/liblockdev.so.1.0.0
/usr/lib/tmpfiles.d/lockdev.conf
/usr/sbin/lockdev
/usr/share/doc/lockdev
/usr/share/doc/lockdev/AUTHORS
/usr/share/licenses/lockdev
/usr/share/licenses/lockdev/COPYING
/usr/share/man/man8/lockdev.8.gz
/run/lock/lockdev
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/9dfc0f173d9920c45eccf68764ee1e42b0e6e5
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/9902fa79265a01d5a770f89aef8ed8e97cee7e
/usr/lib/tmpfiles.d/lockdev.conf
/usr/lib64/liblockdev.so.1
/usr/lib64/liblockdev.so.1.0.0
/usr/sbin/lockdev
/usr/share/doc/lockdev
/usr/share/doc/lockdev/AUTHORS
/usr/share/licenses/lockdev
/usr/share/licenses/lockdev/COPYING
/usr/share/man/man8/lockdev.8.gz

References

Summary

In this tutorial we learn how to install lockdev on Fedora 34 using yum and dnf.