How To Install python3-lockfile on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-lockfile
on Rocky Linux 8.
What is python3-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. This is a Python 3 build of lockfile package.
We can use yum
or dnf
to install python3-lockfile
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-lockfile.
Install python3-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 python3-lockfile
using dnf
by running the following command:
sudo dnf -y install python3-lockfile
Install python3-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 python3-lockfile
using yum
by running the following command:
sudo yum -y install python3-lockfile
How To Uninstall python3-lockfile on Rocky Linux 8
To uninstall only the python3-lockfile
package we can use the following command:
sudo dnf remove python3-lockfile
python3-lockfile Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/lockfile
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/pbr.json
/usr/lib/python3.6/site-packages/lockfile-0.11.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/lockfile/__init__.py
/usr/lib/python3.6/site-packages/lockfile/__pycache__
/usr/lib/python3.6/site-packages/lockfile/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/linklockfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/linklockfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/pidlockfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/pidlockfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/symlinklockfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/lockfile/__pycache__/symlinklockfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/lockfile/linklockfile.py
/usr/lib/python3.6/site-packages/lockfile/mkdirlockfile.py
/usr/lib/python3.6/site-packages/lockfile/pidlockfile.py
/usr/lib/python3.6/site-packages/lockfile/sqlitelockfile.py
/usr/lib/python3.6/site-packages/lockfile/symlinklockfile.py
/usr/share/doc/python3-lockfile
/usr/share/doc/python3-lockfile/ACKS
/usr/share/doc/python3-lockfile/AUTHORS
/usr/share/doc/python3-lockfile/LICENSE
/usr/share/doc/python3-lockfile/PKG-INFO
/usr/share/doc/python3-lockfile/README.rst
/usr/share/doc/python3-lockfile/RELEASE-NOTES
/usr/share/doc/python3-lockfile/doc
/usr/share/doc/python3-lockfile/doc/source
/usr/share/doc/python3-lockfile/doc/source/Makefile
/usr/share/doc/python3-lockfile/doc/source/conf.py
/usr/share/doc/python3-lockfile/doc/source/index.rst
References
Summary
In this tutorial we learn how to install python3-lockfile
on Rocky Linux 8 using yum and dnf.