How To Install lockdev.i686 on Amazon Linux 2

In this tutorial we learn how to install lockdev.i686 in Amazon Linux 2. lockdev.i686 is A library for locking devices

Introduction

In this tutorial we learn how to install lockdev.i686 on Amazon Linux 2.

What is lockdev.i686

Lockdev provides a reliable way to put an exclusive lock to devices using both FSSTND and SVr4 methods.

We can use yum to install lockdev.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install lockdev.i686.

Install lockdev.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install lockdev.i686

How To Uninstall lockdev.i686 on Amazon Linux 2

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

sudo yum remove lockdev.i686

lockdev.i686 Package Contents on Amazon Linux 2

/usr/lib/liblockdev.so.1
/usr/lib/liblockdev.so.1.0.0
/usr/sbin/lockdev
/usr/share/doc/lockdev-1.0.4
/usr/share/doc/lockdev-1.0.4/AUTHORS
/usr/share/doc/lockdev-1.0.4/COPYING
/usr/share/man/man8/lockdev.8.gz
/var/lock/lockdev

References

Summary

In this tutorial we learn how to install lockdev.i686 on Amazon Linux 2 using yum.