How To Install python2-lockfile on Rocky Linux 8
Introduction
In this tutorial we learn how to install python2-lockfile on Rocky Linux 8.
What is python2-lockfile
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 or dnf to install python2-lockfile on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-lockfile.
Install python2-lockfile on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python2-lockfile using dnf by running the following command:
sudo dnf -y install python2-lockfile
Install python2-lockfile on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python2-lockfile using yum by running the following command:
sudo yum -y install python2-lockfile
How To Uninstall python2-lockfile on Rocky Linux 8
To uninstall only the python2-lockfile package we can use the following command:
sudo dnf remove python2-lockfile
python2-lockfile Package Contents on Rocky Linux 8
/usr/lib/python2.7/site-packages/lockfile
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/pbr.json
/usr/lib/python2.7/site-packages/lockfile-0.11.0-py2.7.egg-info/top_level.txt
/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/lib/python2.7/site-packages/lockfile/symlinklockfile.py
/usr/lib/python2.7/site-packages/lockfile/symlinklockfile.pyc
/usr/lib/python2.7/site-packages/lockfile/symlinklockfile.pyo
/usr/share/doc/python2-lockfile
/usr/share/doc/python2-lockfile/ACKS
/usr/share/doc/python2-lockfile/AUTHORS
/usr/share/doc/python2-lockfile/LICENSE
/usr/share/doc/python2-lockfile/PKG-INFO
/usr/share/doc/python2-lockfile/README.rst
/usr/share/doc/python2-lockfile/RELEASE-NOTES
/usr/share/doc/python2-lockfile/doc
/usr/share/doc/python2-lockfile/doc/source
/usr/share/doc/python2-lockfile/doc/source/Makefile
/usr/share/doc/python2-lockfile/doc/source/conf.py
/usr/share/doc/python2-lockfile/doc/source/index.rst
References
Summary
In this tutorial we learn how to install python2-lockfile on Rocky Linux 8 using yum and dnf.