How To Install python3-evdev on Fedora 36

In this tutorial we learn how to install python3-evdev in Fedora 36. python3-evdev is Python bindings for the Linux input handling subsystem

Introduction

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

What is python3-evdev

This package provides python bindings to the generic input event interface in Linux. The evdev interface serves the purpose of passing events generated in the kernel directly to userspace through character devices that are typically located in /dev/input/. This package also comes with bindings to uinput, the userspace input subsystem. Uinput allows userspace programs to create and handle input devices that can inject events directly into the input subsystem. In other words, python-evdev allows you to read and write input events on Linux. An event can be a key or button press, a mouse movement or a tap on a touchscreen.

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

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

sudo dnf -y install python3-evdev

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

sudo yum -y install python3-evdev

How To Uninstall python3-evdev on Fedora 36

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

sudo dnf remove python3-evdev

python3-evdev Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/9939e2c78fbcd2c54b0c911f7def0e7fba631e
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/7ba9170d5c25f5f3da4cf969d5248e6e17bbd2
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/875f9a7da8e54a9c505e00a42ad2c6ee4ca020
/usr/lib64/python3.10/site-packages/evdev
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/evdev-1.5.0-py3.10.egg-info/zip-safe
/usr/lib64/python3.10/site-packages/evdev/__init__.py
/usr/lib64/python3.10/site-packages/evdev/__pycache__
/usr/lib64/python3.10/site-packages/evdev/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/device.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/device.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/ecodes.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/ecodes.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/eventio.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/eventio.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/eventio_async.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/eventio_async.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/events.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/events.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/evtest.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/evtest.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/ff.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/ff.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/genecodes.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/genecodes.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/uinput.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/uinput.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/evdev/__pycache__/util.cpython-310.pyc
/usr/lib64/python3.10/site-packages/evdev/_ecodes.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/evdev/_input.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/evdev/_uinput.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/evdev/device.py
/usr/lib64/python3.10/site-packages/evdev/ecodes.py
/usr/lib64/python3.10/site-packages/evdev/eventio.py
/usr/lib64/python3.10/site-packages/evdev/eventio_async.py
/usr/lib64/python3.10/site-packages/evdev/events.py
/usr/lib64/python3.10/site-packages/evdev/evtest.py
/usr/lib64/python3.10/site-packages/evdev/ff.py
/usr/lib64/python3.10/site-packages/evdev/genecodes.py
/usr/lib64/python3.10/site-packages/evdev/uinput.py
/usr/lib64/python3.10/site-packages/evdev/util.py
/usr/share/doc/python3-evdev
/usr/share/doc/python3-evdev/README.rst
/usr/share/licenses/python3-evdev
/usr/share/licenses/python3-evdev/LICENSE

References

Summary

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