How To Install python3-lockfile on Fedora 36
Introduction
In this tutorial we learn how to install python3-lockfile
on Fedora 36.
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.
We can use yum
or dnf
to install python3-lockfile
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-lockfile.
Install python3-lockfile on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the python3-lockfile
package we can use the following command:
sudo dnf remove python3-lockfile
python3-lockfile Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/lockfile
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/lockfile-0.12.2-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/lockfile/__init__.py
/usr/lib/python3.10/site-packages/lockfile/__pycache__
/usr/lib/python3.10/site-packages/lockfile/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/linklockfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/linklockfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/mkdirlockfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/pidlockfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/pidlockfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/sqlitelockfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/symlinklockfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/lockfile/__pycache__/symlinklockfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/lockfile/linklockfile.py
/usr/lib/python3.10/site-packages/lockfile/mkdirlockfile.py
/usr/lib/python3.10/site-packages/lockfile/pidlockfile.py
/usr/lib/python3.10/site-packages/lockfile/sqlitelockfile.py
/usr/lib/python3.10/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/ChangeLog
/usr/share/doc/python3-lockfile/README.rst
/usr/share/doc/python3-lockfile/RELEASE-NOTES
/usr/share/licenses/python3-lockfile
/usr/share/licenses/python3-lockfile/LICENSE
References
Summary
In this tutorial we learn how to install python3-lockfile
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).