How To Install python3-evdev on CentOS 8
Introduction
In this tutorial we learn how to install python3-evdev
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-evdev.
Install python3-evdev on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the python3-evdev
package we can use the following command:
sudo dnf remove python3-evdev
python3-evdev Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/a67f5aba6cc2fbfad796ce91f790db17e09528
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/741e276fb38641c40fc8173c335904e503d53c
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/5e1be05286658ce2e28e3de60439960142ac7a
/usr/lib64/python3.6/site-packages/evdev
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/evdev-1.1.2-py3.6.egg-info/zip-safe
/usr/lib64/python3.6/site-packages/evdev/__init__.py
/usr/lib64/python3.6/site-packages/evdev/__pycache__
/usr/lib64/python3.6/site-packages/evdev/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/device.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/device.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/ecodes.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/ecodes.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/eventio.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/eventio.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/eventio_async.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/eventio_async.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/events.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/events.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/evtest.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/evtest.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/ff.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/ff.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/genecodes.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/genecodes.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/uinput.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/uinput.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/evdev/__pycache__/util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/evdev/_ecodes.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/evdev/_input.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/evdev/_uinput.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/evdev/device.py
/usr/lib64/python3.6/site-packages/evdev/ecodes.py
/usr/lib64/python3.6/site-packages/evdev/eventio.py
/usr/lib64/python3.6/site-packages/evdev/eventio_async.py
/usr/lib64/python3.6/site-packages/evdev/events.py
/usr/lib64/python3.6/site-packages/evdev/evtest.py
/usr/lib64/python3.6/site-packages/evdev/ff.py
/usr/lib64/python3.6/site-packages/evdev/genecodes.py
/usr/lib64/python3.6/site-packages/evdev/uinput.py
/usr/lib64/python3.6/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 CentOS 8 using yum and dnf.