How To Install python39-six on Rocky Linux 8

In this tutorial we learn how to install python39-six on Rocky Linux 8. python39-six is Python 2 and 3 compatibility utilities

Introduction

In this tutorial we learn how to install python39-six on Rocky Linux 8.

What is python39-six

python-six provides simple utilities for wrapping over differences between Python 2 and Python 3. Python 3 version.

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

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

sudo dnf -y install python39-six

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

sudo yum -y install python39-six

How To Uninstall python39-six on Rocky Linux 8

To uninstall only the python39-six package we can use the following command:

sudo dnf remove python39-six

python39-six Package Contents on Rocky Linux 8

/usr/lib/python3.9/site-packages/__pycache__/six.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/__pycache__/six.cpython-39.pyc
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/INSTALLER
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/LICENSE
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/METADATA
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/RECORD
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/REQUESTED
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/WHEEL
/usr/lib/python3.9/site-packages/six-1.15.0.dist-info/top_level.txt
/usr/lib/python3.9/site-packages/six.py
/usr/share/doc/python39-six
/usr/share/doc/python39-six/README.rst
/usr/share/doc/python39-six/index.rst
/usr/share/licenses/python39-six
/usr/share/licenses/python39-six/LICENSE

References

Summary

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