How To Install python-pyudev.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-pyudev.noarch on Amazon Linux 2.
What is python-pyudev.noarch
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 to install python-pyudev.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-pyudev.noarch.
Install python-pyudev.noarch on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-pyudev.noarch using yum by running the following command:
sudo yum -y install python-pyudev.noarch
How To Uninstall python-pyudev.noarch on Amazon Linux 2
To uninstall only the python-pyudev.noarch package we can use the following command:
sudo yum remove python-pyudev.noarch
python-pyudev.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/pyudev
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pyudev/__init__.py
/usr/lib/python2.7/site-packages/pyudev/__init__.pyc
/usr/lib/python2.7/site-packages/pyudev/__init__.pyo
/usr/lib/python2.7/site-packages/pyudev/_compat.py
/usr/lib/python2.7/site-packages/pyudev/_compat.pyc
/usr/lib/python2.7/site-packages/pyudev/_compat.pyo
/usr/lib/python2.7/site-packages/pyudev/_libudev.py
/usr/lib/python2.7/site-packages/pyudev/_libudev.pyc
/usr/lib/python2.7/site-packages/pyudev/_libudev.pyo
/usr/lib/python2.7/site-packages/pyudev/_py2util.py
/usr/lib/python2.7/site-packages/pyudev/_py2util.pyc
/usr/lib/python2.7/site-packages/pyudev/_py2util.pyo
/usr/lib/python2.7/site-packages/pyudev/_py3util.py
/usr/lib/python2.7/site-packages/pyudev/_py3util.pyc
/usr/lib/python2.7/site-packages/pyudev/_py3util.pyo
/usr/lib/python2.7/site-packages/pyudev/_qt_base.py
/usr/lib/python2.7/site-packages/pyudev/_qt_base.pyc
/usr/lib/python2.7/site-packages/pyudev/_qt_base.pyo
/usr/lib/python2.7/site-packages/pyudev/_util.py
/usr/lib/python2.7/site-packages/pyudev/_util.pyc
/usr/lib/python2.7/site-packages/pyudev/_util.pyo
/usr/lib/python2.7/site-packages/pyudev/core.py
/usr/lib/python2.7/site-packages/pyudev/core.pyc
/usr/lib/python2.7/site-packages/pyudev/core.pyo
/usr/lib/python2.7/site-packages/pyudev/device.py
/usr/lib/python2.7/site-packages/pyudev/device.pyc
/usr/lib/python2.7/site-packages/pyudev/device.pyo
/usr/lib/python2.7/site-packages/pyudev/glib.py
/usr/lib/python2.7/site-packages/pyudev/glib.pyc
/usr/lib/python2.7/site-packages/pyudev/glib.pyo
/usr/lib/python2.7/site-packages/pyudev/monitor.py
/usr/lib/python2.7/site-packages/pyudev/monitor.pyc
/usr/lib/python2.7/site-packages/pyudev/monitor.pyo
/usr/lib/python2.7/site-packages/pyudev/pyqt4.py
/usr/lib/python2.7/site-packages/pyudev/pyqt4.pyc
/usr/lib/python2.7/site-packages/pyudev/pyqt4.pyo
/usr/lib/python2.7/site-packages/pyudev/pyside.py
/usr/lib/python2.7/site-packages/pyudev/pyside.pyc
/usr/lib/python2.7/site-packages/pyudev/pyside.pyo
/usr/lib/python2.7/site-packages/pyudev/wx.py
/usr/lib/python2.7/site-packages/pyudev/wx.pyc
/usr/lib/python2.7/site-packages/pyudev/wx.pyo
/usr/share/doc/python-pyudev-0.15
/usr/share/doc/python-pyudev-0.15/COPYING
/usr/share/doc/python-pyudev-0.15/README.rst
References
Summary
In this tutorial we learn how to install python-pyudev.noarch on Amazon Linux 2 using yum.