How To Install python3-daphne on Fedora 36

In this tutorial we learn how to install python3-daphne in Fedora 36. python3-daphne is Django ASGI (HTTP/WebSocket) server

Introduction

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

What is python3-daphne

Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels. It supports automatic negotiation of protocols; there’s no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints.

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

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

sudo dnf -y install python3-daphne

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

sudo yum -y install python3-daphne

How To Uninstall python3-daphne on Fedora 36

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

sudo dnf remove python3-daphne

python3-daphne Package Contents on Fedora 36

/usr/bin/daphne
/usr/lib/python3.10/site-packages/daphne
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/daphne-3.0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/daphne/__init__.py
/usr/lib/python3.10/site-packages/daphne/__main__.py
/usr/lib/python3.10/site-packages/daphne/__pycache__
/usr/lib/python3.10/site-packages/daphne/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/access.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/access.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/endpoints.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/endpoints.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/http_protocol.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/http_protocol.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/server.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/server.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/testing.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/testing.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/ws_protocol.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/daphne/__pycache__/ws_protocol.cpython-310.pyc
/usr/lib/python3.10/site-packages/daphne/access.py
/usr/lib/python3.10/site-packages/daphne/cli.py
/usr/lib/python3.10/site-packages/daphne/endpoints.py
/usr/lib/python3.10/site-packages/daphne/http_protocol.py
/usr/lib/python3.10/site-packages/daphne/server.py
/usr/lib/python3.10/site-packages/daphne/testing.py
/usr/lib/python3.10/site-packages/daphne/utils.py
/usr/lib/python3.10/site-packages/daphne/ws_protocol.py
/usr/lib/python3.10/site-packages/twisted/plugins/__pycache__
/usr/lib/python3.10/site-packages/twisted/plugins/__pycache__/fd_endpoint.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/twisted/plugins/__pycache__/fd_endpoint.cpython-310.pyc
/usr/lib/python3.10/site-packages/twisted/plugins/fd_endpoint.py
/usr/share/doc/python3-daphne
/usr/share/doc/python3-daphne/README.rst
/usr/share/licenses/python3-daphne
/usr/share/licenses/python3-daphne/LICENSE

References

Summary

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