How To Install python3-websocket-client on Rocky Linux 8

In this tutorial we learn how to install python3-websocket-client on Rocky Linux 8. python3-websocket-client is WebSocket client for python

Introduction

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

What is python3-websocket-client

python-websocket-client module is WebSocket client for python. This provides the low level APIs for WebSocket. All APIs are the synchronous functions. python-websocket-client supports only hybi-13.

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

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

sudo dnf -y install python3-websocket-client

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

sudo yum -y install python3-websocket-client

How To Uninstall python3-websocket-client on Rocky Linux 8

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

sudo dnf remove python3-websocket-client

python3-websocket-client Package Contents on Rocky Linux 8

/usr/bin/wsdump
/usr/lib/python3.6/site-packages/websocket
/usr/lib/python3.6/site-packages/websocket/__init__.py
/usr/lib/python3.6/site-packages/websocket/__pycache__
/usr/lib/python3.6/site-packages/websocket/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_abnf.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_abnf.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_app.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_app.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_cookiejar.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_cookiejar.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_core.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_handshake.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_handshake.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_http.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_http.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_logging.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_logging.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_socket.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_socket.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_ssl_compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_ssl_compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_url.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_url.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/websocket/__pycache__/_utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/websocket/_abnf.py
/usr/lib/python3.6/site-packages/websocket/_app.py
/usr/lib/python3.6/site-packages/websocket/_cookiejar.py
/usr/lib/python3.6/site-packages/websocket/_core.py
/usr/lib/python3.6/site-packages/websocket/_exceptions.py
/usr/lib/python3.6/site-packages/websocket/_handshake.py
/usr/lib/python3.6/site-packages/websocket/_http.py
/usr/lib/python3.6/site-packages/websocket/_logging.py
/usr/lib/python3.6/site-packages/websocket/_socket.py
/usr/lib/python3.6/site-packages/websocket/_ssl_compat.py
/usr/lib/python3.6/site-packages/websocket/_url.py
/usr/lib/python3.6/site-packages/websocket/_utils.py
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/websocket_client-0.56.0-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-websocket-client
/usr/share/doc/python3-websocket-client/README.rst
/usr/share/licenses/python3-websocket-client
/usr/share/licenses/python3-websocket-client/LICENSE

References

Summary

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