How To Install sanlock-python.x86_64 on Amazon Linux 2

In this tutorial we learn how to install sanlock-python.x86_64 in Amazon Linux 2. sanlock-python.x86_64 is Python bindings for the sanlock library

Introduction

In this tutorial we learn how to install sanlock-python.x86_64 on Amazon Linux 2.

What is sanlock-python.x86_64

The sanlock-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the sanlock library.

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

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

sudo yum -y install sanlock-python.x86_64

How To Uninstall sanlock-python.x86_64 on Amazon Linux 2

To uninstall only the sanlock-python.x86_64 package we can use the following command:

sudo yum remove sanlock-python.x86_64

sanlock-python.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/sanlock.so
/usr/lib64/python2.7/site-packages/sanlock_python-3.6.0_-py2.7.egg-info

References

Summary

In this tutorial we learn how to install sanlock-python.x86_64 on Amazon Linux 2 using yum.