How To Install sanlock-lib on CentOS 8

sanlock-lib is A shared storage lock manager library A shared storage lock manager library

Introduction

In this tutorial we learn how to install sanlock-lib on CentOS 8.

What is sanlock-lib

The sanlock-lib package contains the runtime libraries for sanlock, a shared storage lock manager. Hosts connected to a common SAN can use this to synchronize their access to the shared disks. sanlock-lib 3.8.3 3.el8_4 x86_64 74 k sanlock-3.8.3-3.el8_4.src.rpm baseos A shared storage lock manager library https GPLv2 and GPLv2+ and LGPLv2+ The sanlock-lib package contains the runtime libraries for sanlock, a shared storage lock manager. Hosts connected to a common SAN can use this to synchronize their access to the shared disks.

We can use yum or dnf to install sanlock-lib on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install sanlock-lib.

Install sanlock-lib 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 sanlock-lib using dnf by running the following command:

sudo dnf -y install sanlock-lib

Install sanlock-lib 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 sanlock-lib using yum by running the following command:

sudo yum -y install sanlock-lib

How To Uninstall sanlock-lib on CentOS 8

To uninstall only the sanlock-lib package we can use the following command:

sudo dnf remove sanlock-lib

sanlock-lib Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/b059444832b9ced2defa6b9954e86b89c33eb1
/usr/lib/.build-id/29
/usr/lib/.build-id/29/78782c4375bda456f11d33dedd87150efb59a2
/usr/lib/.build-id/51
/usr/lib/.build-id/51/5d0f673c4cadf7f5826ef328f02720420924bb
/usr/lib64/libsanlock.so.1
/usr/lib64/libsanlock.so.1.0
/usr/lib64/libsanlock_client.so.1
/usr/lib64/libsanlock_client.so.1.0
/usr/lib64/libwdmd.so.1
/usr/lib64/libwdmd.so.1.0
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/5eb0e6c404a2acd23fad37d2888c812410dcd8
/usr/lib/.build-id/23
/usr/lib/.build-id/23/8922da4c665a85ecb930888a35636877c7fd38
/usr/lib/.build-id/25
/usr/lib/.build-id/25/8aff74d50950669aecbc280f7bb220eb97cfc6
/usr/lib64/libsanlock.so.1
/usr/lib64/libsanlock.so.1.0
/usr/lib64/libsanlock_client.so.1
/usr/lib64/libsanlock_client.so.1.0
/usr/lib64/libwdmd.so.1
/usr/lib64/libwdmd.so.1.0
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/1139742ea96d9f1341ea16e39a5bb4ef23e630
/usr/lib/.build-id/57
/usr/lib/.build-id/57/689a9ed9ba2fe4c97e1d4cc9d54c63bfe3ef32
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/ec750cb627ff279318eb6bcd343064e5317376
/usr/lib/libsanlock.so.1
/usr/lib/libsanlock.so.1.0
/usr/lib/libsanlock_client.so.1
/usr/lib/libsanlock_client.so.1.0
/usr/lib/libwdmd.so.1
/usr/lib/libwdmd.so.1.0
/usr/lib/.build-id
/usr/lib/.build-id/48
/usr/lib/.build-id/48/f00f77aaf1b22f25af50f736e23f3d14afe281
/usr/lib/.build-id/58
/usr/lib/.build-id/58/dc9474cc5547f15139f4ff3f19551ade0a82c2
/usr/lib/.build-id/de
/usr/lib/.build-id/de/94a723c0bf84a4034380551e0d7c398803fe4e
/usr/lib/libsanlock.so.1
/usr/lib/libsanlock.so.1.0
/usr/lib/libsanlock_client.so.1
/usr/lib/libsanlock_client.so.1.0
/usr/lib/libwdmd.so.1
/usr/lib/libwdmd.so.1.0

References

Summary

In this tutorial we learn how to install sanlock-lib on CentOS 8 using yum and dnf.