How To Install python2-pytest on Rocky Linux 8

In this tutorial we learn how to install python2-pytest on Rocky Linux 8. python2-pytest is Simple powerful testing with Python

Introduction

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

What is python2-pytest

py.test provides simple, yet powerful testing for Python.

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

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

sudo dnf -y install python2-pytest

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

sudo yum -y install python2-pytest

How To Uninstall python2-pytest on Rocky Linux 8

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

sudo dnf remove python2-pytest

python2-pytest Package Contents on Rocky Linux 8

/usr/bin/py.test-2
/usr/bin/py.test-2.7
/usr/bin/pytest-2
/usr/bin/pytest-2.7
/usr/lib/python2.7/site-packages/_pytest
/usr/lib/python2.7/site-packages/_pytest/__init__.py
/usr/lib/python2.7/site-packages/_pytest/__init__.pyc
/usr/lib/python2.7/site-packages/_pytest/__init__.pyo
/usr/lib/python2.7/site-packages/_pytest/__pycache__
/usr/lib/python2.7/site-packages/_pytest/__pycache__/pytester.cpython-27-PYTEST.pyc
/usr/lib/python2.7/site-packages/_pytest/_argcomplete.py
/usr/lib/python2.7/site-packages/_pytest/_argcomplete.pyc
/usr/lib/python2.7/site-packages/_pytest/_argcomplete.pyo
/usr/lib/python2.7/site-packages/_pytest/_code
/usr/lib/python2.7/site-packages/_pytest/_code/__init__.py
/usr/lib/python2.7/site-packages/_pytest/_code/__init__.pyc
/usr/lib/python2.7/site-packages/_pytest/_code/__init__.pyo
/usr/lib/python2.7/site-packages/_pytest/_code/_py2traceback.py
/usr/lib/python2.7/site-packages/_pytest/_code/_py2traceback.pyc
/usr/lib/python2.7/site-packages/_pytest/_code/_py2traceback.pyo
/usr/lib/python2.7/site-packages/_pytest/_code/code.py
/usr/lib/python2.7/site-packages/_pytest/_code/code.pyc
/usr/lib/python2.7/site-packages/_pytest/_code/code.pyo
/usr/lib/python2.7/site-packages/_pytest/_code/source.py
/usr/lib/python2.7/site-packages/_pytest/_code/source.pyc
/usr/lib/python2.7/site-packages/_pytest/_code/source.pyo
/usr/lib/python2.7/site-packages/_pytest/_version.py
/usr/lib/python2.7/site-packages/_pytest/_version.pyc
/usr/lib/python2.7/site-packages/_pytest/_version.pyo
/usr/lib/python2.7/site-packages/_pytest/assertion
/usr/lib/python2.7/site-packages/_pytest/assertion/__init__.py
/usr/lib/python2.7/site-packages/_pytest/assertion/__init__.pyc
/usr/lib/python2.7/site-packages/_pytest/assertion/__init__.pyo
/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py
/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyc
/usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyo
/usr/lib/python2.7/site-packages/_pytest/assertion/truncate.py
/usr/lib/python2.7/site-packages/_pytest/assertion/truncate.pyc
/usr/lib/python2.7/site-packages/_pytest/assertion/truncate.pyo
/usr/lib/python2.7/site-packages/_pytest/assertion/util.py
/usr/lib/python2.7/site-packages/_pytest/assertion/util.pyc
/usr/lib/python2.7/site-packages/_pytest/assertion/util.pyo
/usr/lib/python2.7/site-packages/_pytest/cacheprovider.py
/usr/lib/python2.7/site-packages/_pytest/cacheprovider.pyc
/usr/lib/python2.7/site-packages/_pytest/cacheprovider.pyo
/usr/lib/python2.7/site-packages/_pytest/capture.py
/usr/lib/python2.7/site-packages/_pytest/capture.pyc
/usr/lib/python2.7/site-packages/_pytest/capture.pyo
/usr/lib/python2.7/site-packages/_pytest/compat.py
/usr/lib/python2.7/site-packages/_pytest/compat.pyc
/usr/lib/python2.7/site-packages/_pytest/compat.pyo
/usr/lib/python2.7/site-packages/_pytest/config.py
/usr/lib/python2.7/site-packages/_pytest/config.pyc
/usr/lib/python2.7/site-packages/_pytest/config.pyo
/usr/lib/python2.7/site-packages/_pytest/debugging.py
/usr/lib/python2.7/site-packages/_pytest/debugging.pyc
/usr/lib/python2.7/site-packages/_pytest/debugging.pyo
/usr/lib/python2.7/site-packages/_pytest/deprecated.py
/usr/lib/python2.7/site-packages/_pytest/deprecated.pyc
/usr/lib/python2.7/site-packages/_pytest/deprecated.pyo
/usr/lib/python2.7/site-packages/_pytest/doctest.py
/usr/lib/python2.7/site-packages/_pytest/doctest.pyc
/usr/lib/python2.7/site-packages/_pytest/doctest.pyo
/usr/lib/python2.7/site-packages/_pytest/fixtures.py
/usr/lib/python2.7/site-packages/_pytest/fixtures.pyc
/usr/lib/python2.7/site-packages/_pytest/fixtures.pyo
/usr/lib/python2.7/site-packages/_pytest/freeze_support.py
/usr/lib/python2.7/site-packages/_pytest/freeze_support.pyc
/usr/lib/python2.7/site-packages/_pytest/freeze_support.pyo
/usr/lib/python2.7/site-packages/_pytest/helpconfig.py
/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyc
/usr/lib/python2.7/site-packages/_pytest/helpconfig.pyo
/usr/lib/python2.7/site-packages/_pytest/hookspec.py
/usr/lib/python2.7/site-packages/_pytest/hookspec.pyc
/usr/lib/python2.7/site-packages/_pytest/hookspec.pyo
/usr/lib/python2.7/site-packages/_pytest/junitxml.py
/usr/lib/python2.7/site-packages/_pytest/junitxml.pyc
/usr/lib/python2.7/site-packages/_pytest/junitxml.pyo
/usr/lib/python2.7/site-packages/_pytest/logging.py
/usr/lib/python2.7/site-packages/_pytest/logging.pyc
/usr/lib/python2.7/site-packages/_pytest/logging.pyo
/usr/lib/python2.7/site-packages/_pytest/main.py
/usr/lib/python2.7/site-packages/_pytest/main.pyc
/usr/lib/python2.7/site-packages/_pytest/main.pyo
/usr/lib/python2.7/site-packages/_pytest/mark.py
/usr/lib/python2.7/site-packages/_pytest/mark.pyc
/usr/lib/python2.7/site-packages/_pytest/mark.pyo
/usr/lib/python2.7/site-packages/_pytest/monkeypatch.py
/usr/lib/python2.7/site-packages/_pytest/monkeypatch.pyc
/usr/lib/python2.7/site-packages/_pytest/monkeypatch.pyo
/usr/lib/python2.7/site-packages/_pytest/nodes.py
/usr/lib/python2.7/site-packages/_pytest/nodes.pyc
/usr/lib/python2.7/site-packages/_pytest/nodes.pyo
/usr/lib/python2.7/site-packages/_pytest/nose.py
/usr/lib/python2.7/site-packages/_pytest/nose.pyc
/usr/lib/python2.7/site-packages/_pytest/nose.pyo
/usr/lib/python2.7/site-packages/_pytest/outcomes.py
/usr/lib/python2.7/site-packages/_pytest/outcomes.pyc
/usr/lib/python2.7/site-packages/_pytest/outcomes.pyo
/usr/lib/python2.7/site-packages/_pytest/pastebin.py
/usr/lib/python2.7/site-packages/_pytest/pastebin.pyc
/usr/lib/python2.7/site-packages/_pytest/pastebin.pyo
/usr/lib/python2.7/site-packages/_pytest/pytester.py
/usr/lib/python2.7/site-packages/_pytest/pytester.pyc
/usr/lib/python2.7/site-packages/_pytest/pytester.pyo
/usr/lib/python2.7/site-packages/_pytest/python.py
/usr/lib/python2.7/site-packages/_pytest/python.pyc
/usr/lib/python2.7/site-packages/_pytest/python.pyo
/usr/lib/python2.7/site-packages/_pytest/python_api.py
/usr/lib/python2.7/site-packages/_pytest/python_api.pyc
/usr/lib/python2.7/site-packages/_pytest/python_api.pyo
/usr/lib/python2.7/site-packages/_pytest/recwarn.py
/usr/lib/python2.7/site-packages/_pytest/recwarn.pyc
/usr/lib/python2.7/site-packages/_pytest/recwarn.pyo
/usr/lib/python2.7/site-packages/_pytest/resultlog.py
/usr/lib/python2.7/site-packages/_pytest/resultlog.pyc
/usr/lib/python2.7/site-packages/_pytest/resultlog.pyo
/usr/lib/python2.7/site-packages/_pytest/runner.py
/usr/lib/python2.7/site-packages/_pytest/runner.pyc
/usr/lib/python2.7/site-packages/_pytest/runner.pyo
/usr/lib/python2.7/site-packages/_pytest/setuponly.py
/usr/lib/python2.7/site-packages/_pytest/setuponly.pyc
/usr/lib/python2.7/site-packages/_pytest/setuponly.pyo
/usr/lib/python2.7/site-packages/_pytest/setupplan.py
/usr/lib/python2.7/site-packages/_pytest/setupplan.pyc
/usr/lib/python2.7/site-packages/_pytest/setupplan.pyo
/usr/lib/python2.7/site-packages/_pytest/skipping.py
/usr/lib/python2.7/site-packages/_pytest/skipping.pyc
/usr/lib/python2.7/site-packages/_pytest/skipping.pyo
/usr/lib/python2.7/site-packages/_pytest/terminal.py
/usr/lib/python2.7/site-packages/_pytest/terminal.pyc
/usr/lib/python2.7/site-packages/_pytest/terminal.pyo
/usr/lib/python2.7/site-packages/_pytest/tmpdir.py
/usr/lib/python2.7/site-packages/_pytest/tmpdir.pyc
/usr/lib/python2.7/site-packages/_pytest/tmpdir.pyo
/usr/lib/python2.7/site-packages/_pytest/unittest.py
/usr/lib/python2.7/site-packages/_pytest/unittest.pyc
/usr/lib/python2.7/site-packages/_pytest/unittest.pyo
/usr/lib/python2.7/site-packages/_pytest/warnings.py
/usr/lib/python2.7/site-packages/_pytest/warnings.pyc
/usr/lib/python2.7/site-packages/_pytest/warnings.pyo
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/pytest-3.4.2-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pytest.py
/usr/lib/python2.7/site-packages/pytest.pyc
/usr/lib/python2.7/site-packages/pytest.pyo
/usr/share/doc/python2-pytest
/usr/share/doc/python2-pytest/CHANGELOG.rst
/usr/share/doc/python2-pytest/CONTRIBUTING.rst
/usr/share/doc/python2-pytest/README.rst
/usr/share/licenses/python2-pytest
/usr/share/licenses/python2-pytest/LICENSE

References

Summary

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