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

In this tutorial we learn how to install python-pyblock.x86_64 in Amazon Linux 2. python-pyblock.x86_64 is Python modules for dealing with block devices

Introduction

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

What is python-pyblock.x86_64

The pyblock contains Python modules for dealing with block devices.

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

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

sudo yum -y install python-pyblock.x86_64

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

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

sudo yum remove python-pyblock.x86_64

python-pyblock.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/block
/usr/lib64/python2.7/site-packages/block/__init__.py
/usr/lib64/python2.7/site-packages/block/__init__.pyc
/usr/lib64/python2.7/site-packages/block/__init__.pyo
/usr/lib64/python2.7/site-packages/block/device.py
/usr/lib64/python2.7/site-packages/block/device.pyc
/usr/lib64/python2.7/site-packages/block/device.pyo
/usr/lib64/python2.7/site-packages/block/dmmodule.so
/usr/lib64/python2.7/site-packages/block/dmraidmodule.so
/usr/lib64/python2.7/site-packages/block/maps.py
/usr/lib64/python2.7/site-packages/block/maps.pyc
/usr/lib64/python2.7/site-packages/block/maps.pyo
/usr/share/doc/pyblock-0.53
/usr/share/doc/pyblock-0.53/COPYING

References

Summary

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