How To Install python3-lockfile.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python3-lockfile.noarch on Amazon Linux 2.
What is python3-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 python3-lockfile.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python3-lockfile.noarch.
Install python3-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 python3-lockfile.noarch using yum by running the following command:
sudo yum -y install python3-lockfile.noarch
How To Uninstall python3-lockfile.noarch on Amazon Linux 2
To uninstall only the python3-lockfile.noarch package we can use the following command:
sudo yum remove python3-lockfile.noarch
python3-lockfile.noarch Package Contents on Amazon Linux 2
/usr/lib/python3.7/site-packages/lockfile
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info/PKG-INFO
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info/SOURCES.txt
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info/dependency_links.txt
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info/not-zip-safe
/usr/lib/python3.7/site-packages/lockfile-0.11.0-py3.7.egg-info/top_level.txt
/usr/lib/python3.7/site-packages/lockfile/__init__.py
/usr/lib/python3.7/site-packages/lockfile/__pycache__
/usr/lib/python3.7/site-packages/lockfile/__pycache__/__init__.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/__init__.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/linklockfile.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/linklockfile.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/pidlockfile.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/pidlockfile.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/symlinklockfile.cpython-37.opt-1.pyc
/usr/lib/python3.7/site-packages/lockfile/__pycache__/symlinklockfile.cpython-37.pyc
/usr/lib/python3.7/site-packages/lockfile/linklockfile.py
/usr/lib/python3.7/site-packages/lockfile/mkdirlockfile.py
/usr/lib/python3.7/site-packages/lockfile/pidlockfile.py
/usr/lib/python3.7/site-packages/lockfile/sqlitelockfile.py
/usr/lib/python3.7/site-packages/lockfile/symlinklockfile.py
/usr/share/doc/python3-lockfile-0.11.0
/usr/share/doc/python3-lockfile-0.11.0/ACKS
/usr/share/doc/python3-lockfile-0.11.0/AUTHORS
/usr/share/doc/python3-lockfile-0.11.0/ChangeLog
/usr/share/doc/python3-lockfile-0.11.0/README.rst
/usr/share/doc/python3-lockfile-0.11.0/RELEASE-NOTES
/usr/share/licenses/python3-lockfile-0.11.0
/usr/share/licenses/python3-lockfile-0.11.0/LICENSE
References
Summary
In this tutorial we learn how to install python3-lockfile.noarch on Amazon Linux 2 using yum.