How To Install python38 on Rocky Linux 8

In this tutorial we learn how to install python38 on Rocky Linux 8. python38 is Interpreter of the Python programming language

Introduction

In this tutorial we learn how to install python38 on Rocky Linux 8.

What is python38

Python is an accessible, high-level, dynamically typed, interpreted programming language, designed with an emphasis on code readability. It includes an extensive standard library, and has a vast ecosystem of third-party libraries. The python38 package provides the “python3” executable interpreter for the Python language, version 3. The majority of its standard library is provided in the python38-libs package, which should be installed automatically along with python38. The remaining parts of the Python standard library are broken out into the python38-tkinter and python38-test packages, which may need to be installed separately. Documentation for Python is provided in the python38-docs package. Packages containing additional libraries for Python are generally named with the “python38-” prefix. For the unversioned “python” executable, see manual page “unversioned-python”.

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

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

sudo dnf -y install python38

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

sudo yum -y install python38

How To Uninstall python38 on Rocky Linux 8

To uninstall only the python38 package we can use the following command:

sudo dnf remove python38

python38 Package Contents on Rocky Linux 8

/usr/bin/pydoc-3
/usr/bin/pydoc3
/usr/bin/pydoc3.8
/usr/bin/python3
/usr/bin/python3.8
/usr/bin/unversioned-python
/usr/lib/.build-id
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/b9b416b81bbbe1be56aae04917cd1df53bff98
/usr/share/doc/python38
/usr/share/doc/python38/README.rst
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.8.1.gz
/usr/bin/pydoc-3
/usr/bin/pydoc3
/usr/bin/pydoc3.8
/usr/bin/python3
/usr/bin/python3.8
/usr/bin/unversioned-python
/usr/lib/.build-id
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/5117ff8273b4b3295d3dc47a4e4a65352449c3
/usr/share/doc/python38
/usr/share/doc/python38/README.rst
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.8.1.gz

References

Summary

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