How To Install python3-typing-extensions on AlmaLinux 8

In this tutorial we learn how to install python3-typing-extensions in AlmaLinux 8. python3-typing-extensions is Python Typing Extensions

Introduction

In this tutorial we learn how to install python3-typing-extensions on AlmaLinux 8.

What is python3-typing-extensions

Typing Extensions - Backported and Experimental Type Hints for Python The typing module was added to the standard library in Python 3.5 on a provisional basis and will no longer be provisional in Python 3.7. However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing module, such as typing.Text or typing.Coroutine. The typing_extensions module contains both backports of these changes as well as experimental types that will eventually be added to the typing module, such as Protocol. Users of other Python versions should continue to install and use the typing module from PyPi instead of using this one unless specifically writing code that must be compatible with multiple Python versions or requires experimental types.

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

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

sudo dnf -y install python3-typing-extensions

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

sudo yum -y install python3-typing-extensions

How To Uninstall python3-typing-extensions on AlmaLinux 8

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

sudo dnf remove python3-typing-extensions

References

Summary

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