How To Install python3-fixtures on Rocky Linux 8

In this tutorial we learn how to install python3-fixtures on Rocky Linux 8. python3-fixtures is Fixtures, reusable state for writing clean tests and more

Introduction

In this tutorial we learn how to install python3-fixtures on Rocky Linux 8.

What is python3-fixtures

Fixtures defines a Python contract for reusable state / support logic, primarily for unit testing. Helper and adaption logic is included to make it easy to write your own fixtures using the fixtures contract. Glue code is provided that makes using fixtures that meet the Fixtures contract in unit test compatible test cases easy and straight forward.

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

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

sudo dnf -y install python3-fixtures

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

sudo yum -y install python3-fixtures

How To Uninstall python3-fixtures on Rocky Linux 8

To uninstall only the python3-fixtures package we can use the following command:

sudo dnf remove python3-fixtures

python3-fixtures Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/fixtures
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/pbr.json
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/fixtures-3.0.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/fixtures/__init__.py
/usr/lib/python3.6/site-packages/fixtures/__pycache__
/usr/lib/python3.6/site-packages/fixtures/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/callmany.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/callmany.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/fixture.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/fixture.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/testcase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/__pycache__/testcase.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__init__.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/environ.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/environ.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/logger.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/logger.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/mockpatch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/mockpatch.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/monkeypatch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/monkeypatch.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/packagepath.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/packagepath.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/popen.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/popen.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/pythonpackage.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/pythonpackage.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/pythonpath.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/pythonpath.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/streams.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/streams.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/tempdir.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/tempdir.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/temphomedir.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/temphomedir.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/timeout.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/timeout.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/warnings.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/__pycache__/warnings.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/_fixtures/environ.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/logger.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/mockpatch.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/monkeypatch.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/packagepath.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/popen.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/pythonpackage.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/pythonpath.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/streams.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/tempdir.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/temphomedir.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/timeout.py
/usr/lib/python3.6/site-packages/fixtures/_fixtures/warnings.py
/usr/lib/python3.6/site-packages/fixtures/callmany.py
/usr/lib/python3.6/site-packages/fixtures/fixture.py
/usr/lib/python3.6/site-packages/fixtures/testcase.py
/usr/lib/python3.6/site-packages/fixtures/tests
/usr/lib/python3.6/site-packages/fixtures/tests/__init__.py
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/helpers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/helpers.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_callmany.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_callmany.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_fixture.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_fixture.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_testcase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/__pycache__/test_testcase.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__init__.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_environ.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_environ.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_logger.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_logger.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_mockpatch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_mockpatch.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_monkeypatch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_monkeypatch.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_packagepath.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_packagepath.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_popen.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_popen.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_pythonpackage.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_pythonpackage.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_pythonpath.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_pythonpath.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_streams.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_streams.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_tempdir.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_tempdir.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_temphomedir.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_temphomedir.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_timeout.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_timeout.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_warnings.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/__pycache__/test_warnings.cpython-36.pyc
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_environ.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_logger.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_mockpatch.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_monkeypatch.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_packagepath.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_popen.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_pythonpackage.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_pythonpath.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_streams.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_tempdir.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_temphomedir.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_timeout.py
/usr/lib/python3.6/site-packages/fixtures/tests/_fixtures/test_warnings.py
/usr/lib/python3.6/site-packages/fixtures/tests/helpers.py
/usr/lib/python3.6/site-packages/fixtures/tests/test_callmany.py
/usr/lib/python3.6/site-packages/fixtures/tests/test_fixture.py
/usr/lib/python3.6/site-packages/fixtures/tests/test_testcase.py
/usr/share/doc/python3-fixtures
/usr/share/doc/python3-fixtures/Apache-2.0
/usr/share/doc/python3-fixtures/BSD
/usr/share/doc/python3-fixtures/COPYING
/usr/share/doc/python3-fixtures/GOALS
/usr/share/doc/python3-fixtures/NEWS
/usr/share/doc/python3-fixtures/README

References

Summary

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