How To Install python2-py on Rocky Linux 8

In this tutorial we learn how to install python2-py on Rocky Linux 8. python2-py is Library with cross-python path, ini-parsing, io, code, log facilities

Introduction

In this tutorial we learn how to install python2-py on Rocky Linux 8.

What is python2-py

The py lib is a Python development support library featuring the following tools and modules * py.path * py.apipkg * py.iniconfig * py.code * py.path

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

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

sudo dnf -y install python2-py

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

sudo yum -y install python2-py

How To Uninstall python2-py on Rocky Linux 8

To uninstall only the python2-py package we can use the following command:

sudo dnf remove python2-py

python2-py Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/py
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/py-1.5.3-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/py/__init__.py
/usr/lib/python2.7/site-packages/py/__init__.pyc
/usr/lib/python2.7/site-packages/py/__init__.pyo
/usr/lib/python2.7/site-packages/py/__metainfo.py
/usr/lib/python2.7/site-packages/py/__metainfo.pyc
/usr/lib/python2.7/site-packages/py/__metainfo.pyo
/usr/lib/python2.7/site-packages/py/_builtin.py
/usr/lib/python2.7/site-packages/py/_builtin.pyc
/usr/lib/python2.7/site-packages/py/_builtin.pyo
/usr/lib/python2.7/site-packages/py/_code
/usr/lib/python2.7/site-packages/py/_code/__init__.py
/usr/lib/python2.7/site-packages/py/_code/__init__.pyc
/usr/lib/python2.7/site-packages/py/_code/__init__.pyo
/usr/lib/python2.7/site-packages/py/_code/_assertionnew.py
/usr/lib/python2.7/site-packages/py/_code/_assertionnew.pyc
/usr/lib/python2.7/site-packages/py/_code/_assertionnew.pyo
/usr/lib/python2.7/site-packages/py/_code/_assertionold.py
/usr/lib/python2.7/site-packages/py/_code/_assertionold.pyc
/usr/lib/python2.7/site-packages/py/_code/_assertionold.pyo
/usr/lib/python2.7/site-packages/py/_code/_py2traceback.py
/usr/lib/python2.7/site-packages/py/_code/_py2traceback.pyc
/usr/lib/python2.7/site-packages/py/_code/_py2traceback.pyo
/usr/lib/python2.7/site-packages/py/_code/assertion.py
/usr/lib/python2.7/site-packages/py/_code/assertion.pyc
/usr/lib/python2.7/site-packages/py/_code/assertion.pyo
/usr/lib/python2.7/site-packages/py/_code/code.py
/usr/lib/python2.7/site-packages/py/_code/code.pyc
/usr/lib/python2.7/site-packages/py/_code/code.pyo
/usr/lib/python2.7/site-packages/py/_code/source.py
/usr/lib/python2.7/site-packages/py/_code/source.pyc
/usr/lib/python2.7/site-packages/py/_code/source.pyo
/usr/lib/python2.7/site-packages/py/_error.py
/usr/lib/python2.7/site-packages/py/_error.pyc
/usr/lib/python2.7/site-packages/py/_error.pyo
/usr/lib/python2.7/site-packages/py/_io
/usr/lib/python2.7/site-packages/py/_io/__init__.py
/usr/lib/python2.7/site-packages/py/_io/__init__.pyc
/usr/lib/python2.7/site-packages/py/_io/__init__.pyo
/usr/lib/python2.7/site-packages/py/_io/capture.py
/usr/lib/python2.7/site-packages/py/_io/capture.pyc
/usr/lib/python2.7/site-packages/py/_io/capture.pyo
/usr/lib/python2.7/site-packages/py/_io/saferepr.py
/usr/lib/python2.7/site-packages/py/_io/saferepr.pyc
/usr/lib/python2.7/site-packages/py/_io/saferepr.pyo
/usr/lib/python2.7/site-packages/py/_io/terminalwriter.py
/usr/lib/python2.7/site-packages/py/_io/terminalwriter.pyc
/usr/lib/python2.7/site-packages/py/_io/terminalwriter.pyo
/usr/lib/python2.7/site-packages/py/_log
/usr/lib/python2.7/site-packages/py/_log/__init__.py
/usr/lib/python2.7/site-packages/py/_log/__init__.pyc
/usr/lib/python2.7/site-packages/py/_log/__init__.pyo
/usr/lib/python2.7/site-packages/py/_log/log.py
/usr/lib/python2.7/site-packages/py/_log/log.pyc
/usr/lib/python2.7/site-packages/py/_log/log.pyo
/usr/lib/python2.7/site-packages/py/_log/warning.py
/usr/lib/python2.7/site-packages/py/_log/warning.pyc
/usr/lib/python2.7/site-packages/py/_log/warning.pyo
/usr/lib/python2.7/site-packages/py/_path
/usr/lib/python2.7/site-packages/py/_path/__init__.py
/usr/lib/python2.7/site-packages/py/_path/__init__.pyc
/usr/lib/python2.7/site-packages/py/_path/__init__.pyo
/usr/lib/python2.7/site-packages/py/_path/cacheutil.py
/usr/lib/python2.7/site-packages/py/_path/cacheutil.pyc
/usr/lib/python2.7/site-packages/py/_path/cacheutil.pyo
/usr/lib/python2.7/site-packages/py/_path/common.py
/usr/lib/python2.7/site-packages/py/_path/common.pyc
/usr/lib/python2.7/site-packages/py/_path/common.pyo
/usr/lib/python2.7/site-packages/py/_path/local.py
/usr/lib/python2.7/site-packages/py/_path/local.pyc
/usr/lib/python2.7/site-packages/py/_path/local.pyo
/usr/lib/python2.7/site-packages/py/_path/svnurl.py
/usr/lib/python2.7/site-packages/py/_path/svnurl.pyc
/usr/lib/python2.7/site-packages/py/_path/svnurl.pyo
/usr/lib/python2.7/site-packages/py/_path/svnwc.py
/usr/lib/python2.7/site-packages/py/_path/svnwc.pyc
/usr/lib/python2.7/site-packages/py/_path/svnwc.pyo
/usr/lib/python2.7/site-packages/py/_process
/usr/lib/python2.7/site-packages/py/_process/__init__.py
/usr/lib/python2.7/site-packages/py/_process/__init__.pyc
/usr/lib/python2.7/site-packages/py/_process/__init__.pyo
/usr/lib/python2.7/site-packages/py/_process/cmdexec.py
/usr/lib/python2.7/site-packages/py/_process/cmdexec.pyc
/usr/lib/python2.7/site-packages/py/_process/cmdexec.pyo
/usr/lib/python2.7/site-packages/py/_process/forkedfunc.py
/usr/lib/python2.7/site-packages/py/_process/forkedfunc.pyc
/usr/lib/python2.7/site-packages/py/_process/forkedfunc.pyo
/usr/lib/python2.7/site-packages/py/_process/killproc.py
/usr/lib/python2.7/site-packages/py/_process/killproc.pyc
/usr/lib/python2.7/site-packages/py/_process/killproc.pyo
/usr/lib/python2.7/site-packages/py/_std.py
/usr/lib/python2.7/site-packages/py/_std.pyc
/usr/lib/python2.7/site-packages/py/_std.pyo
/usr/lib/python2.7/site-packages/py/_vendored_packages
/usr/lib/python2.7/site-packages/py/_vendored_packages/__init__.py
/usr/lib/python2.7/site-packages/py/_vendored_packages/__init__.pyc
/usr/lib/python2.7/site-packages/py/_vendored_packages/__init__.pyo
/usr/lib/python2.7/site-packages/py/_vendored_packages/apipkg.py
/usr/lib/python2.7/site-packages/py/_vendored_packages/apipkg.pyc
/usr/lib/python2.7/site-packages/py/_vendored_packages/apipkg.pyo
/usr/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.py
/usr/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.pyc
/usr/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.pyo
/usr/lib/python2.7/site-packages/py/_xmlgen.py
/usr/lib/python2.7/site-packages/py/_xmlgen.pyc
/usr/lib/python2.7/site-packages/py/_xmlgen.pyo
/usr/lib/python2.7/site-packages/py/test.py
/usr/lib/python2.7/site-packages/py/test.pyc
/usr/lib/python2.7/site-packages/py/test.pyo
/usr/share/doc/python2-py
/usr/share/doc/python2-py/CHANGELOG
/usr/share/doc/python2-py/README.rst
/usr/share/licenses/python2-py
/usr/share/licenses/python2-py/LICENSE

References

Summary

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