How To Install python3-pyserial on Rocky Linux 8

In this tutorial we learn how to install python3-pyserial on Rocky Linux 8. python3-pyserial is Python serial port access library

Introduction

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

What is python3-pyserial

This module encapsulates the access for the serial port. It provides backends for standard Python running on Windows, Linux, BSD (possibly any POSIX compilant system) and Jython. The module named “serial” automaticaly selects the appropriate backend.

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

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

sudo dnf -y install python3-pyserial

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

sudo yum -y install python3-pyserial

How To Uninstall python3-pyserial on Rocky Linux 8

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

sudo dnf remove python3-pyserial

python3-pyserial Package Contents on Rocky Linux 8

/usr/bin/miniterm-3.6.py
/usr/bin/miniterm-3.py
/usr/lib/python3.6/site-packages/pyserial-3.1.1-py3.6.egg-info
/usr/lib/python3.6/site-packages/pyserial-3.1.1-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/pyserial-3.1.1-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/pyserial-3.1.1-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/pyserial-3.1.1-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/serial
/usr/lib/python3.6/site-packages/serial/__init__.py
/usr/lib/python3.6/site-packages/serial/__pycache__
/usr/lib/python3.6/site-packages/serial/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/aio.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/aio.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/rfc2217.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/rfc2217.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/rs485.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/rs485.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialcli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialcli.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialjava.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialjava.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialposix.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialposix.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialutil.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialutil.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialwin32.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/serialwin32.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/win32.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/__pycache__/win32.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/aio.py
/usr/lib/python3.6/site-packages/serial/rfc2217.py
/usr/lib/python3.6/site-packages/serial/rs485.py
/usr/lib/python3.6/site-packages/serial/serialcli.py
/usr/lib/python3.6/site-packages/serial/serialjava.py
/usr/lib/python3.6/site-packages/serial/serialposix.py
/usr/lib/python3.6/site-packages/serial/serialutil.py
/usr/lib/python3.6/site-packages/serial/serialwin32.py
/usr/lib/python3.6/site-packages/serial/threaded
/usr/lib/python3.6/site-packages/serial/threaded/__init__.py
/usr/lib/python3.6/site-packages/serial/threaded/__pycache__
/usr/lib/python3.6/site-packages/serial/threaded/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/threaded/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools
/usr/lib/python3.6/site-packages/serial/tools/__init__.py
/usr/lib/python3.6/site-packages/serial/tools/__pycache__
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/hexlify_codec.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/hexlify_codec.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_common.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_linux.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_linux.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_osx.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_osx.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_posix.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_posix.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_windows.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/list_ports_windows.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/miniterm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/tools/__pycache__/miniterm.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/tools/hexlify_codec.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports_common.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports_linux.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports_osx.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports_posix.py
/usr/lib/python3.6/site-packages/serial/tools/list_ports_windows.py
/usr/lib/python3.6/site-packages/serial/tools/miniterm.py
/usr/lib/python3.6/site-packages/serial/urlhandler
/usr/lib/python3.6/site-packages/serial/urlhandler/__init__.py
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_alt.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_alt.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_hwgrep.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_hwgrep.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_loop.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_loop.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_rfc2217.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_rfc2217.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_socket.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_socket.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_spy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/__pycache__/protocol_spy.cpython-36.pyc
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_alt.py
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_hwgrep.py
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_loop.py
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_rfc2217.py
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_socket.py
/usr/lib/python3.6/site-packages/serial/urlhandler/protocol_spy.py
/usr/lib/python3.6/site-packages/serial/win32.py
/usr/share/doc/python3-pyserial
/usr/share/doc/python3-pyserial/CHANGES.rst
/usr/share/doc/python3-pyserial/LICENSE.txt
/usr/share/doc/python3-pyserial/README.rst
/usr/share/doc/python3-pyserial/examples
/usr/share/doc/python3-pyserial/examples/at_protocol.py
/usr/share/doc/python3-pyserial/examples/port_publisher.py
/usr/share/doc/python3-pyserial/examples/port_publisher.sh
/usr/share/doc/python3-pyserial/examples/rfc2217_server.py
/usr/share/doc/python3-pyserial/examples/setup-miniterm-py2exe.py
/usr/share/doc/python3-pyserial/examples/setup-rfc2217_server-py2exe.py
/usr/share/doc/python3-pyserial/examples/setup-wxTerminal-py2exe.py
/usr/share/doc/python3-pyserial/examples/tcp_serial_redirect.py
/usr/share/doc/python3-pyserial/examples/wxSerialConfigDialog.py
/usr/share/doc/python3-pyserial/examples/wxSerialConfigDialog.wxg
/usr/share/doc/python3-pyserial/examples/wxTerminal.py
/usr/share/doc/python3-pyserial/examples/wxTerminal.wxg

References

Summary

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