How To Install python3-asgiref on Rocky Linux 8

In this tutorial we learn how to install python3-asgiref on Rocky Linux 8. python3-asgiref is ASGI specs, helper code, and adapters

Introduction

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

What is python3-asgiref

ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI. This package includes ASGI base libraries, such as * Sync-to-async and async-to-sync function wrappers, asgiref.sync * Server base classes, asgiref.server * A WSGI-to-ASGI adapter, in asgiref.wsgi

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

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

sudo dnf -y install python3-asgiref

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

sudo yum -y install python3-asgiref

How To Uninstall python3-asgiref on Rocky Linux 8

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

sudo dnf remove python3-asgiref

python3-asgiref Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/asgiref
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/asgiref-3.2.10-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/asgiref/__init__.py
/usr/lib/python3.6/site-packages/asgiref/__pycache__
/usr/lib/python3.6/site-packages/asgiref/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/compatibility.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/compatibility.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/current_thread_executor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/current_thread_executor.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/local.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/local.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/server.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/server.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/sync.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/sync.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/testing.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/testing.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/timeout.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/timeout.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/wsgi.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/asgiref/__pycache__/wsgi.cpython-36.pyc
/usr/lib/python3.6/site-packages/asgiref/compatibility.py
/usr/lib/python3.6/site-packages/asgiref/current_thread_executor.py
/usr/lib/python3.6/site-packages/asgiref/local.py
/usr/lib/python3.6/site-packages/asgiref/server.py
/usr/lib/python3.6/site-packages/asgiref/sync.py
/usr/lib/python3.6/site-packages/asgiref/testing.py
/usr/lib/python3.6/site-packages/asgiref/timeout.py
/usr/lib/python3.6/site-packages/asgiref/wsgi.py
/usr/share/doc/python3-asgiref
/usr/share/doc/python3-asgiref/README.rst
/usr/share/licenses/python3-asgiref
/usr/share/licenses/python3-asgiref/LICENSE

References

Summary

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