How To Install python3-pyusb on Rocky Linux 8

In this tutorial we learn how to install python3-pyusb on Rocky Linux 8. python3-pyusb is Python bindings for libusb

Introduction

In this tutorial we learn how to install python3-pyusb on Rocky Linux 8.

What is python3-pyusb

PyUSB provides easy USB access to python. The module contains classes and methods to support most USB operations.

We can use yum or dnf to install python3-pyusb on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pyusb.

Install python3-pyusb on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-pyusb using dnf by running the following command:

sudo dnf -y install python3-pyusb

Install python3-pyusb on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-pyusb using yum by running the following command:

sudo yum -y install python3-pyusb

How To Uninstall python3-pyusb on Rocky Linux 8

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

sudo dnf remove python3-pyusb

python3-pyusb Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/pyusb-1.0.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/usb
/usr/lib/python3.6/site-packages/usb/__init__.py
/usr/lib/python3.6/site-packages/usb/__pycache__
/usr/lib/python3.6/site-packages/usb/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_debug.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_debug.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_interop.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_interop.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_lookup.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_lookup.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_objfinalizer.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/_objfinalizer.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/control.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/control.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/core.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/legacy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/legacy.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/libloader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/libloader.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/_debug.py
/usr/lib/python3.6/site-packages/usb/_interop.py
/usr/lib/python3.6/site-packages/usb/_lookup.py
/usr/lib/python3.6/site-packages/usb/_objfinalizer.py
/usr/lib/python3.6/site-packages/usb/backend
/usr/lib/python3.6/site-packages/usb/backend/__init__.py
/usr/lib/python3.6/site-packages/usb/backend/__pycache__
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/libusb0.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/libusb0.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/libusb1.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/libusb1.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/openusb.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/usb/backend/__pycache__/openusb.cpython-36.pyc
/usr/lib/python3.6/site-packages/usb/backend/libusb0.py
/usr/lib/python3.6/site-packages/usb/backend/libusb1.py
/usr/lib/python3.6/site-packages/usb/backend/openusb.py
/usr/lib/python3.6/site-packages/usb/control.py
/usr/lib/python3.6/site-packages/usb/core.py
/usr/lib/python3.6/site-packages/usb/legacy.py
/usr/lib/python3.6/site-packages/usb/libloader.py
/usr/lib/python3.6/site-packages/usb/util.py
/usr/share/doc/python3-pyusb
/usr/share/doc/python3-pyusb/README.rst
/usr/share/licenses/python3-pyusb
/usr/share/licenses/python3-pyusb/LICENSE

References

Summary

In this tutorial we learn how to install python3-pyusb on Rocky Linux 8 using yum and dnf.