How To Install python-lockfile.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-lockfile.noarch on Amazon Linux 2.
What is python-lockfile.noarch
The lockfile module exports a FileLock class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls.
We can use yum to install python-lockfile.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-lockfile.noarch.
Install python-lockfile.noarch 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-lockfile.noarch using yum by running the following command:
sudo yum -y install python-lockfile.noarch
How To Uninstall python-lockfile.noarch on Amazon Linux 2
To uninstall only the python-lockfile.noarch package we can use the following command:
sudo yum remove python-lockfile.noarch
python-lockfile.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/lockfile
/usr/lib/python2.7/site-packages/lockfile-0.9.1-py2.7.egg-info
/usr/lib/python2.7/site-packages/lockfile/__init__.py
/usr/lib/python2.7/site-packages/lockfile/__init__.pyc
/usr/lib/python2.7/site-packages/lockfile/__init__.pyo
/usr/lib/python2.7/site-packages/lockfile/linklockfile.py
/usr/lib/python2.7/site-packages/lockfile/linklockfile.pyc
/usr/lib/python2.7/site-packages/lockfile/linklockfile.pyo
/usr/lib/python2.7/site-packages/lockfile/mkdirlockfile.py
/usr/lib/python2.7/site-packages/lockfile/mkdirlockfile.pyc
/usr/lib/python2.7/site-packages/lockfile/mkdirlockfile.pyo
/usr/lib/python2.7/site-packages/lockfile/pidlockfile.py
/usr/lib/python2.7/site-packages/lockfile/pidlockfile.pyc
/usr/lib/python2.7/site-packages/lockfile/pidlockfile.pyo
/usr/lib/python2.7/site-packages/lockfile/sqlitelockfile.py
/usr/lib/python2.7/site-packages/lockfile/sqlitelockfile.pyc
/usr/lib/python2.7/site-packages/lockfile/sqlitelockfile.pyo
/usr/share/doc/python-lockfile-0.9.1
/usr/share/doc/python-lockfile-0.9.1/ACKS
/usr/share/doc/python-lockfile-0.9.1/LICENSE
/usr/share/doc/python-lockfile-0.9.1/MANIFEST
/usr/share/doc/python-lockfile-0.9.1/PKG-INFO
/usr/share/doc/python-lockfile-0.9.1/README
/usr/share/doc/python-lockfile-0.9.1/RELEASE-NOTES
/usr/share/doc/python-lockfile-0.9.1/doc
/usr/share/doc/python-lockfile-0.9.1/doc/Makefile
/usr/share/doc/python-lockfile-0.9.1/doc/conf.py
/usr/share/doc/python-lockfile-0.9.1/doc/glossary.rst
/usr/share/doc/python-lockfile-0.9.1/doc/index.rst
/usr/share/doc/python-lockfile-0.9.1/doc/lockfile.rst
References
Summary
In this tutorial we learn how to install python-lockfile.noarch on Amazon Linux 2 using yum.