How To Install python3-asgiref on AlmaLinux 8

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

Introduction

In this tutorial we learn how to install python3-asgiref on AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove python3-asgiref

References

Summary

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