How To Install python3-utmp on Fedora 36
Introduction
In this tutorial we learn how to install python3-utmp
on Fedora 36.
What is python3-utmp
python-utmp consists of three modules, providing access to utmp records. It is quite difficult to access utmp record portably, because every UNIX has different structure of utmp files. Currently, python-utmp works on platforms which provide getutent, getutid, getutline, pututline, setutent, endutent and utmpname functions (such as GNU systems (Linux and hurd) and System V unices) and on BSD systems using simple utmp structure.
We can use yum
or dnf
to install python3-utmp
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-utmp.
Install python3-utmp 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-utmp
using dnf
by running the following command:
sudo dnf -y install python3-utmp
Install python3-utmp 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-utmp
using yum
by running the following command:
sudo yum -y install python3-utmp
How To Uninstall python3-utmp on Fedora 36
To uninstall only the python3-utmp
package we can use the following command:
sudo dnf remove python3-utmp
python3-utmp Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/109562d69bf6d2c24314951554e55a3c8798b4
/usr/lib64/python3.10/site-packages/UTMPCONST.py
/usr/lib64/python3.10/site-packages/__pycache__
/usr/lib64/python3.10/site-packages/__pycache__/UTMPCONST.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/__pycache__/UTMPCONST.cpython-310.pyc
/usr/lib64/python3.10/site-packages/__pycache__/utmp.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/__pycache__/utmp.cpython-310.pyc
/usr/lib64/python3.10/site-packages/utmp.py
/usr/lib64/python3.10/site-packages/utmpaccess.so
/usr/share/doc/python3-utmp
/usr/share/doc/python3-utmp/README
/usr/share/doc/python3-utmp/TODO
/usr/share/licenses/python3-utmp
/usr/share/licenses/python3-utmp/COPYING
References
Summary
In this tutorial we learn how to install python3-utmp
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).