How To Install python3-websockets on Fedora 36

In this tutorial we learn how to install python3-websockets in Fedora 36. python3-websockets is An implementation of the WebSocket Protocol for python with asyncio

Introduction

In this tutorial we learn how to install python3-websockets on Fedora 36.

What is python3-websockets

websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity. It passes the Autobahn Testsuite. Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it provides an API based on coroutines, making it easy to write highly concurrent applications.

We can use yum or dnf to install python3-websockets on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-websockets.

Install python3-websockets on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-websockets

Install python3-websockets on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-websockets

How To Uninstall python3-websockets on Fedora 36

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

sudo dnf remove python3-websockets

python3-websockets Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/67b6337eb14aadd099a02eed1e6c2dcdee796d
/usr/lib64/python3.10/site-packages/websockets
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info/INSTALLER
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info/LICENSE
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info/METADATA
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info/WHEEL
/usr/lib64/python3.10/site-packages/websockets-10.1.dist-info/top_level.txt
/usr/lib64/python3.10/site-packages/websockets/__init__.py
/usr/lib64/python3.10/site-packages/websockets/__main__.py
/usr/lib64/python3.10/site-packages/websockets/__pycache__
/usr/lib64/python3.10/site-packages/websockets/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/__main__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/auth.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/auth.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/client.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/client.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/connection.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/connection.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/datastructures.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/datastructures.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/exceptions.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/frames.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/frames.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/headers.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/headers.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/http.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/http.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/http11.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/http11.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/imports.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/imports.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/server.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/server.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/streams.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/streams.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/typing.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/typing.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/uri.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/uri.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/utils.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/__pycache__/version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/auth.py
/usr/lib64/python3.10/site-packages/websockets/client.py
/usr/lib64/python3.10/site-packages/websockets/connection.py
/usr/lib64/python3.10/site-packages/websockets/datastructures.py
/usr/lib64/python3.10/site-packages/websockets/exceptions.py
/usr/lib64/python3.10/site-packages/websockets/extensions
/usr/lib64/python3.10/site-packages/websockets/extensions/__init__.py
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/base.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/permessage_deflate.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/__pycache__/permessage_deflate.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/extensions/base.py
/usr/lib64/python3.10/site-packages/websockets/extensions/permessage_deflate.py
/usr/lib64/python3.10/site-packages/websockets/frames.py
/usr/lib64/python3.10/site-packages/websockets/headers.py
/usr/lib64/python3.10/site-packages/websockets/http.py
/usr/lib64/python3.10/site-packages/websockets/http11.py
/usr/lib64/python3.10/site-packages/websockets/imports.py
/usr/lib64/python3.10/site-packages/websockets/legacy
/usr/lib64/python3.10/site-packages/websockets/legacy/__init__.py
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/auth.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/auth.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/client.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/client.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/compatibility.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/compatibility.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/framing.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/framing.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/handshake.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/handshake.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/http.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/http.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/protocol.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/protocol.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/server.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/__pycache__/server.cpython-310.pyc
/usr/lib64/python3.10/site-packages/websockets/legacy/auth.py
/usr/lib64/python3.10/site-packages/websockets/legacy/client.py
/usr/lib64/python3.10/site-packages/websockets/legacy/compatibility.py
/usr/lib64/python3.10/site-packages/websockets/legacy/framing.py
/usr/lib64/python3.10/site-packages/websockets/legacy/handshake.py
/usr/lib64/python3.10/site-packages/websockets/legacy/http.py
/usr/lib64/python3.10/site-packages/websockets/legacy/protocol.py
/usr/lib64/python3.10/site-packages/websockets/legacy/server.py
/usr/lib64/python3.10/site-packages/websockets/py.typed
/usr/lib64/python3.10/site-packages/websockets/server.py
/usr/lib64/python3.10/site-packages/websockets/speedups.c
/usr/lib64/python3.10/site-packages/websockets/speedups.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/websockets/streams.py
/usr/lib64/python3.10/site-packages/websockets/typing.py
/usr/lib64/python3.10/site-packages/websockets/uri.py
/usr/lib64/python3.10/site-packages/websockets/utils.py
/usr/lib64/python3.10/site-packages/websockets/version.py
/usr/share/doc/python3-websockets
/usr/share/doc/python3-websockets/README.rst

References

Summary

In this tutorial we learn how to install python3-websockets on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).