How To Install python3-typing-extensions on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-typing-extensions
on Rocky Linux 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 Rocky Linux 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 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-typing-extensions
using dnf
by running the following command:
sudo dnf -y install python3-typing-extensions
Install python3-typing-extensions 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-typing-extensions
using yum
by running the following command:
sudo yum -y install python3-typing-extensions
How To Uninstall python3-typing-extensions on Rocky Linux 8
To uninstall only the python3-typing-extensions
package we can use the following command:
sudo dnf remove python3-typing-extensions
python3-typing-extensions Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/__pycache__/typing_extensions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/__pycache__/typing_extensions.cpython-36.pyc
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/typing_extensions-3.7.4.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/typing_extensions.py
/usr/share/doc/python3-typing-extensions
/usr/share/doc/python3-typing-extensions/README.rst
/usr/share/licenses/python3-typing-extensions
/usr/share/licenses/python3-typing-extensions/LICENSE
References
Summary
In this tutorial we learn how to install python3-typing-extensions
on Rocky Linux 8 using yum and dnf.