How To Install python3-pyudev on Fedora 36

In this tutorial we learn how to install python3-pyudev in Fedora 36. python3-pyudev is A libudev binding

Introduction

In this tutorial we learn how to install python3-pyudev on Fedora 36.

What is python3-pyudev

pyudev is a LGPL licensed, pure Python binding for libudev, the device and hardware management and information library for Linux. It supports almost all libudev functionality, you can enumerate devices, query device properties and attributes or monitor devices, including asynchronous monitoring with threads, or within the event loops of Qt, Glib or wxPython. The binding supports CPython 2 (2.6 or newer) and 3 (3.1 or newer), and PyPy 1.5 or newer. It is tested against udev 151 or newer, earlier versions of udev as found on dated Linux systems may work, but are not officially supported.

We can use yum or dnf to install python3-pyudev on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pyudev.

Install python3-pyudev 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-pyudev using dnf by running the following command:

sudo dnf -y install python3-pyudev

Install python3-pyudev 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-pyudev using yum by running the following command:

sudo yum -y install python3-pyudev

How To Uninstall python3-pyudev on Fedora 36

To uninstall only the python3-pyudev package we can use the following command:

sudo dnf remove python3-pyudev

python3-pyudev Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/pyudev
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pyudev-0.22.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pyudev/__init__.py
/usr/lib/python3.10/site-packages/pyudev/__pycache__
/usr/lib/python3.10/site-packages/pyudev/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_errors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_errors.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_qt_base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_qt_base.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/_util.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/core.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/core.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/discover.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/discover.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/monitor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/monitor.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_compat.py
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__init__.py
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/_errorcheckers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/_errorcheckers.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/libc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/libc.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/libudev.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/libudev.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/_errorcheckers.py
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/libc.py
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/libudev.py
/usr/lib/python3.10/site-packages/pyudev/_ctypeslib/utils.py
/usr/lib/python3.10/site-packages/pyudev/_errors.py
/usr/lib/python3.10/site-packages/pyudev/_os
/usr/lib/python3.10/site-packages/pyudev/_os/__init__.py
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/pipe.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/pipe.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/poll.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/__pycache__/poll.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/_os/pipe.py
/usr/lib/python3.10/site-packages/pyudev/_os/poll.py
/usr/lib/python3.10/site-packages/pyudev/_qt_base.py
/usr/lib/python3.10/site-packages/pyudev/_util.py
/usr/lib/python3.10/site-packages/pyudev/core.py
/usr/lib/python3.10/site-packages/pyudev/device
/usr/lib/python3.10/site-packages/pyudev/device/__init__.py
/usr/lib/python3.10/site-packages/pyudev/device/__pycache__
/usr/lib/python3.10/site-packages/pyudev/device/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/device/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/device/__pycache__/_device.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pyudev/device/__pycache__/_device.cpython-310.pyc
/usr/lib/python3.10/site-packages/pyudev/device/_device.py
/usr/lib/python3.10/site-packages/pyudev/discover.py
/usr/lib/python3.10/site-packages/pyudev/monitor.py
/usr/lib/python3.10/site-packages/pyudev/version.py
/usr/share/doc/python3-pyudev
/usr/share/doc/python3-pyudev/CHANGES.rst
/usr/share/doc/python3-pyudev/README.rst
/usr/share/licenses/python3-pyudev
/usr/share/licenses/python3-pyudev/COPYING

References

Summary

In this tutorial we learn how to install python3-pyudev on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).