How To Install platform-python on Rocky Linux 8

In this tutorial we learn how to install platform-python on Rocky Linux 8. platform-python is Internal interpreter of the Python programming language

Introduction

In this tutorial we learn how to install platform-python on Rocky Linux 8.

What is platform-python

This is the internal interpreter of the Python language for the system. To use Python yourself, please install one of the available Python 3 packages, for example python36.

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

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

sudo dnf -y install platform-python

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

sudo yum -y install platform-python

How To Uninstall platform-python on Rocky Linux 8

To uninstall only the platform-python package we can use the following command:

sudo dnf remove platform-python

platform-python Package Contents on Rocky Linux 8

/usr/bin/pydoc3.6
/usr/bin/pyvenv-3.6
/usr/bin/unversioned-python
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/fef5c5755c5bd678cd2d54a3ee6432f7e7c7e2
/usr/lib/.build-id/54/fef5c5755c5bd678cd2d54a3ee6432f7e7c7e2.1
/usr/libexec/no-python
/usr/libexec/platform-python
/usr/libexec/platform-python3.6
/usr/libexec/platform-python3.6m
/usr/share/doc/platform-python
/usr/share/doc/platform-python/README.rst
/usr/share/licenses/platform-python
/usr/share/licenses/platform-python/LICENSE
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python3.6.1.gz
/usr/share/man/man1/unversioned-python.1.gz
/usr/bin/pydoc3.6
/usr/bin/pyvenv-3.6
/usr/bin/unversioned-python
/usr/lib/.build-id
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/28379a29e97707e07633626973f8837a4230ed
/usr/lib/.build-id/a9/28379a29e97707e07633626973f8837a4230ed.1
/usr/libexec/no-python
/usr/libexec/platform-python
/usr/libexec/platform-python3.6
/usr/libexec/platform-python3.6m
/usr/share/doc/platform-python
/usr/share/doc/platform-python/README.rst
/usr/share/licenses/platform-python
/usr/share/licenses/platform-python/LICENSE
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python3.6.1.gz
/usr/share/man/man1/unversioned-python.1.gz

References

Summary

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