How To Install lockdev on CentOS 8
Introduction
In this tutorial we learn how to install lockdev
on CentOS 8.
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.28.20111007git.el8 x86_64 41 k lockdev-1.0.4-0.28.20111007git.el8.src.rpm baseos 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lockdev.
Install lockdev on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the lockdev
package we can use the following command:
sudo dnf remove lockdev
lockdev Package Contents on CentOS 8
/run/lock/lockdev
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/d72c1009f26d73794af59996710881f24dfb99
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/7f1c00eb470b11112907a1a547a29ed351f4ba
/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/7d
/usr/lib/.build-id/7d/7d0be9dccf592d695393094b19be174bedf45c
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/381d938519d5c96f6c34361e2cb4991e09049b
/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
- [lockdev website](https://alioth.debian.org/projects/lockdev/ https://alioth.debian.org/projects/lockdev/)
Summary
In this tutorial we learn how to install lockdev
on CentOS 8 using yum and dnf.