How To Install python2-hamcrest on Rocky Linux 8

In this tutorial we learn how to install python2-hamcrest on Rocky Linux 8. python2-hamcrest is Hamcrest matchers for Python

Introduction

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

What is python2-hamcrest

PyHamcrest is a framework for writing matcher objects, allowing you to declaratively define “match” rules. There are a number of situations where matchers are invaluable, such as UI validation, or data filtering, but it is in the area of writing flexible tests that matchers are most commonly used. Python 2 version.

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

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

sudo dnf -y install python2-hamcrest

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

sudo yum -y install python2-hamcrest

How To Uninstall python2-hamcrest on Rocky Linux 8

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

sudo dnf remove python2-hamcrest

python2-hamcrest Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/PyHamcrest-1.9.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/hamcrest
/usr/lib/python2.7/site-packages/hamcrest/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/core
/usr/lib/python2.7/site-packages/hamcrest/core/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/core/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/assert_that.py
/usr/lib/python2.7/site-packages/hamcrest/core/assert_that.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/assert_that.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/base_description.py
/usr/lib/python2.7/site-packages/hamcrest/core/base_description.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/base_description.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/base_matcher.py
/usr/lib/python2.7/site-packages/hamcrest/core/base_matcher.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/base_matcher.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/compat.py
/usr/lib/python2.7/site-packages/hamcrest/core/compat.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/compat.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core
/usr/lib/python2.7/site-packages/hamcrest/core/core/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/allof.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/allof.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/allof.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/anyof.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/anyof.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/anyof.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/described_as.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/described_as.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/described_as.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/is_.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/is_.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/is_.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/isanything.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/isanything.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/isanything.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/isequal.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/isequal.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/isequal.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/isinstanceof.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/isinstanceof.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/isinstanceof.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnone.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnone.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnone.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnot.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnot.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/isnot.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/issame.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/issame.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/issame.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/core/raises.py
/usr/lib/python2.7/site-packages/hamcrest/core/core/raises.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/core/raises.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/description.py
/usr/lib/python2.7/site-packages/hamcrest/core/description.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/description.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/helpers
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/hasmethod.py
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/hasmethod.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/hasmethod.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/wrap_matcher.py
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/wrap_matcher.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/helpers/wrap_matcher.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/matcher.py
/usr/lib/python2.7/site-packages/hamcrest/core/matcher.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/matcher.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribing.py
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribing.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribing.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribingvalue.py
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribingvalue.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/selfdescribingvalue.pyo
/usr/lib/python2.7/site-packages/hamcrest/core/string_description.py
/usr/lib/python2.7/site-packages/hamcrest/core/string_description.pyc
/usr/lib/python2.7/site-packages/hamcrest/core/string_description.pyo
/usr/lib/python2.7/site-packages/hamcrest/library
/usr/lib/python2.7/site-packages/hamcrest/library/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/bool
/usr/lib/python2.7/site-packages/hamcrest/library/bool/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/bool/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/bool/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/bool/bool_comparison.py
/usr/lib/python2.7/site-packages/hamcrest/library/bool/bool_comparison.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/bool/bool_comparison.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection
/usr/lib/python2.7/site-packages/hamcrest/library/collection/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/is_empty.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/is_empty.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/is_empty.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containing.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containing.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containing.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingentries.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingentries.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingentries.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingkey.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingkey.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingkey.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingvalue.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingvalue.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isdict_containingvalue.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isin.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isin.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/isin.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containing.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containing.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containing.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginanyorder.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginanyorder.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginanyorder.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginorder.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginorder.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_containinginorder.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_onlycontaining.py
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_onlycontaining.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/collection/issequence_onlycontaining.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/integration
/usr/lib/python2.7/site-packages/hamcrest/library/integration/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/integration/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/integration/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/integration/match_equality.py
/usr/lib/python2.7/site-packages/hamcrest/library/integration/match_equality.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/integration/match_equality.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/number
/usr/lib/python2.7/site-packages/hamcrest/library/number/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/number/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/number/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/number/iscloseto.py
/usr/lib/python2.7/site-packages/hamcrest/library/number/iscloseto.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/number/iscloseto.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/number/ordering_comparison.py
/usr/lib/python2.7/site-packages/hamcrest/library/number/ordering_comparison.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/number/ordering_comparison.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/object
/usr/lib/python2.7/site-packages/hamcrest/library/object/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/object/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/object/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/object/haslength.py
/usr/lib/python2.7/site-packages/hamcrest/library/object/haslength.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/object/haslength.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasproperty.py
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasproperty.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasproperty.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasstring.py
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasstring.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/object/hasstring.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text
/usr/lib/python2.7/site-packages/hamcrest/library/text/__init__.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/__init__.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/__init__.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_case.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_case.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_case.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_whitespace.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_whitespace.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/isequal_ignoring_whitespace.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontains.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontains.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontains.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontainsinorder.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontainsinorder.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringcontainsinorder.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringendswith.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringendswith.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringendswith.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringmatches.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringmatches.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringmatches.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringstartswith.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringstartswith.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/stringstartswith.pyo
/usr/lib/python2.7/site-packages/hamcrest/library/text/substringmatcher.py
/usr/lib/python2.7/site-packages/hamcrest/library/text/substringmatcher.pyc
/usr/lib/python2.7/site-packages/hamcrest/library/text/substringmatcher.pyo

References

Summary

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