How To Install python2-nose on Rocky Linux 8

In this tutorial we learn how to install python2-nose on Rocky Linux 8. python2-nose is Nose Documentation

Introduction

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

What is python2-nose

nose extends the test loading and running features of unit test, making it easier to write, find and run tests. By default, nose will run tests in files or directories under the current working directory whose names include “test” or “Test” at a word boundary (like “test_this” or “functional_test” or “TestClass” but not “libtest”). Test output is similar to that of unit test, but also includes captured stdout output from failing tests, for easy print-style debugging. These features, and many more, are customizable through the use of plugins. Plugins included with nose provide support for doctest, code coverage and profiling, flexible attribute-based test selection, output capture and more.

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

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

sudo dnf -y install python2-nose

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

sudo yum -y install python2-nose

How To Uninstall python2-nose on Rocky Linux 8

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

sudo dnf remove python2-nose

python2-nose Package Contents on Rocky Linux 8

/usr/bin/nosetests-2
/usr/bin/nosetests-2.7
/usr/lib/python2.7/site-packages/nose
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/nose/__init__.py
/usr/lib/python2.7/site-packages/nose/__init__.pyc
/usr/lib/python2.7/site-packages/nose/__init__.pyo
/usr/lib/python2.7/site-packages/nose/__main__.py
/usr/lib/python2.7/site-packages/nose/__main__.pyc
/usr/lib/python2.7/site-packages/nose/__main__.pyo
/usr/lib/python2.7/site-packages/nose/case.py
/usr/lib/python2.7/site-packages/nose/case.pyc
/usr/lib/python2.7/site-packages/nose/case.pyo
/usr/lib/python2.7/site-packages/nose/commands.py
/usr/lib/python2.7/site-packages/nose/commands.pyc
/usr/lib/python2.7/site-packages/nose/commands.pyo
/usr/lib/python2.7/site-packages/nose/config.py
/usr/lib/python2.7/site-packages/nose/config.pyc
/usr/lib/python2.7/site-packages/nose/config.pyo
/usr/lib/python2.7/site-packages/nose/core.py
/usr/lib/python2.7/site-packages/nose/core.pyc
/usr/lib/python2.7/site-packages/nose/core.pyo
/usr/lib/python2.7/site-packages/nose/exc.py
/usr/lib/python2.7/site-packages/nose/exc.pyc
/usr/lib/python2.7/site-packages/nose/exc.pyo
/usr/lib/python2.7/site-packages/nose/ext
/usr/lib/python2.7/site-packages/nose/ext/__init__.py
/usr/lib/python2.7/site-packages/nose/ext/__init__.pyc
/usr/lib/python2.7/site-packages/nose/ext/__init__.pyo
/usr/lib/python2.7/site-packages/nose/ext/dtcompat.py
/usr/lib/python2.7/site-packages/nose/ext/dtcompat.pyc
/usr/lib/python2.7/site-packages/nose/ext/dtcompat.pyo
/usr/lib/python2.7/site-packages/nose/failure.py
/usr/lib/python2.7/site-packages/nose/failure.pyc
/usr/lib/python2.7/site-packages/nose/failure.pyo
/usr/lib/python2.7/site-packages/nose/importer.py
/usr/lib/python2.7/site-packages/nose/importer.pyc
/usr/lib/python2.7/site-packages/nose/importer.pyo
/usr/lib/python2.7/site-packages/nose/inspector.py
/usr/lib/python2.7/site-packages/nose/inspector.pyc
/usr/lib/python2.7/site-packages/nose/inspector.pyo
/usr/lib/python2.7/site-packages/nose/loader.py
/usr/lib/python2.7/site-packages/nose/loader.pyc
/usr/lib/python2.7/site-packages/nose/loader.pyo
/usr/lib/python2.7/site-packages/nose/plugins
/usr/lib/python2.7/site-packages/nose/plugins/__init__.py
/usr/lib/python2.7/site-packages/nose/plugins/__init__.pyc
/usr/lib/python2.7/site-packages/nose/plugins/__init__.pyo
/usr/lib/python2.7/site-packages/nose/plugins/allmodules.py
/usr/lib/python2.7/site-packages/nose/plugins/allmodules.pyc
/usr/lib/python2.7/site-packages/nose/plugins/allmodules.pyo
/usr/lib/python2.7/site-packages/nose/plugins/attrib.py
/usr/lib/python2.7/site-packages/nose/plugins/attrib.pyc
/usr/lib/python2.7/site-packages/nose/plugins/attrib.pyo
/usr/lib/python2.7/site-packages/nose/plugins/base.py
/usr/lib/python2.7/site-packages/nose/plugins/base.pyc
/usr/lib/python2.7/site-packages/nose/plugins/base.pyo
/usr/lib/python2.7/site-packages/nose/plugins/builtin.py
/usr/lib/python2.7/site-packages/nose/plugins/builtin.pyc
/usr/lib/python2.7/site-packages/nose/plugins/builtin.pyo
/usr/lib/python2.7/site-packages/nose/plugins/capture.py
/usr/lib/python2.7/site-packages/nose/plugins/capture.pyc
/usr/lib/python2.7/site-packages/nose/plugins/capture.pyo
/usr/lib/python2.7/site-packages/nose/plugins/collect.py
/usr/lib/python2.7/site-packages/nose/plugins/collect.pyc
/usr/lib/python2.7/site-packages/nose/plugins/collect.pyo
/usr/lib/python2.7/site-packages/nose/plugins/cover.py
/usr/lib/python2.7/site-packages/nose/plugins/cover.pyc
/usr/lib/python2.7/site-packages/nose/plugins/cover.pyo
/usr/lib/python2.7/site-packages/nose/plugins/debug.py
/usr/lib/python2.7/site-packages/nose/plugins/debug.pyc
/usr/lib/python2.7/site-packages/nose/plugins/debug.pyo
/usr/lib/python2.7/site-packages/nose/plugins/deprecated.py
/usr/lib/python2.7/site-packages/nose/plugins/deprecated.pyc
/usr/lib/python2.7/site-packages/nose/plugins/deprecated.pyo
/usr/lib/python2.7/site-packages/nose/plugins/doctests.py
/usr/lib/python2.7/site-packages/nose/plugins/doctests.pyc
/usr/lib/python2.7/site-packages/nose/plugins/doctests.pyo
/usr/lib/python2.7/site-packages/nose/plugins/errorclass.py
/usr/lib/python2.7/site-packages/nose/plugins/errorclass.pyc
/usr/lib/python2.7/site-packages/nose/plugins/errorclass.pyo
/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.py
/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyc
/usr/lib/python2.7/site-packages/nose/plugins/failuredetail.pyo
/usr/lib/python2.7/site-packages/nose/plugins/isolate.py
/usr/lib/python2.7/site-packages/nose/plugins/isolate.pyc
/usr/lib/python2.7/site-packages/nose/plugins/isolate.pyo
/usr/lib/python2.7/site-packages/nose/plugins/logcapture.py
/usr/lib/python2.7/site-packages/nose/plugins/logcapture.pyc
/usr/lib/python2.7/site-packages/nose/plugins/logcapture.pyo
/usr/lib/python2.7/site-packages/nose/plugins/manager.py
/usr/lib/python2.7/site-packages/nose/plugins/manager.pyc
/usr/lib/python2.7/site-packages/nose/plugins/manager.pyo
/usr/lib/python2.7/site-packages/nose/plugins/multiprocess.py
/usr/lib/python2.7/site-packages/nose/plugins/multiprocess.pyc
/usr/lib/python2.7/site-packages/nose/plugins/multiprocess.pyo
/usr/lib/python2.7/site-packages/nose/plugins/plugintest.py
/usr/lib/python2.7/site-packages/nose/plugins/plugintest.pyc
/usr/lib/python2.7/site-packages/nose/plugins/plugintest.pyo
/usr/lib/python2.7/site-packages/nose/plugins/prof.py
/usr/lib/python2.7/site-packages/nose/plugins/prof.pyc
/usr/lib/python2.7/site-packages/nose/plugins/prof.pyo
/usr/lib/python2.7/site-packages/nose/plugins/skip.py
/usr/lib/python2.7/site-packages/nose/plugins/skip.pyc
/usr/lib/python2.7/site-packages/nose/plugins/skip.pyo
/usr/lib/python2.7/site-packages/nose/plugins/testid.py
/usr/lib/python2.7/site-packages/nose/plugins/testid.pyc
/usr/lib/python2.7/site-packages/nose/plugins/testid.pyo
/usr/lib/python2.7/site-packages/nose/plugins/xunit.py
/usr/lib/python2.7/site-packages/nose/plugins/xunit.pyc
/usr/lib/python2.7/site-packages/nose/plugins/xunit.pyo
/usr/lib/python2.7/site-packages/nose/proxy.py
/usr/lib/python2.7/site-packages/nose/proxy.pyc
/usr/lib/python2.7/site-packages/nose/proxy.pyo
/usr/lib/python2.7/site-packages/nose/pyversion.py
/usr/lib/python2.7/site-packages/nose/pyversion.pyc
/usr/lib/python2.7/site-packages/nose/pyversion.pyo
/usr/lib/python2.7/site-packages/nose/result.py
/usr/lib/python2.7/site-packages/nose/result.pyc
/usr/lib/python2.7/site-packages/nose/result.pyo
/usr/lib/python2.7/site-packages/nose/selector.py
/usr/lib/python2.7/site-packages/nose/selector.pyc
/usr/lib/python2.7/site-packages/nose/selector.pyo
/usr/lib/python2.7/site-packages/nose/sphinx
/usr/lib/python2.7/site-packages/nose/sphinx/__init__.py
/usr/lib/python2.7/site-packages/nose/sphinx/__init__.pyc
/usr/lib/python2.7/site-packages/nose/sphinx/__init__.pyo
/usr/lib/python2.7/site-packages/nose/sphinx/pluginopts.py
/usr/lib/python2.7/site-packages/nose/sphinx/pluginopts.pyc
/usr/lib/python2.7/site-packages/nose/sphinx/pluginopts.pyo
/usr/lib/python2.7/site-packages/nose/suite.py
/usr/lib/python2.7/site-packages/nose/suite.pyc
/usr/lib/python2.7/site-packages/nose/suite.pyo
/usr/lib/python2.7/site-packages/nose/tools
/usr/lib/python2.7/site-packages/nose/tools/__init__.py
/usr/lib/python2.7/site-packages/nose/tools/__init__.pyc
/usr/lib/python2.7/site-packages/nose/tools/__init__.pyo
/usr/lib/python2.7/site-packages/nose/tools/nontrivial.py
/usr/lib/python2.7/site-packages/nose/tools/nontrivial.pyc
/usr/lib/python2.7/site-packages/nose/tools/nontrivial.pyo
/usr/lib/python2.7/site-packages/nose/tools/trivial.py
/usr/lib/python2.7/site-packages/nose/tools/trivial.pyc
/usr/lib/python2.7/site-packages/nose/tools/trivial.pyo
/usr/lib/python2.7/site-packages/nose/twistedtools.py
/usr/lib/python2.7/site-packages/nose/twistedtools.pyc
/usr/lib/python2.7/site-packages/nose/twistedtools.pyo
/usr/lib/python2.7/site-packages/nose/usage.txt
/usr/lib/python2.7/site-packages/nose/util.py
/usr/lib/python2.7/site-packages/nose/util.pyc
/usr/lib/python2.7/site-packages/nose/util.pyo
/usr/share/licenses/python2-nose
/usr/share/licenses/python2-nose/lgpl.txt
/usr/share/man/man1/nosetests-2.1.gz
/usr/share/man/man1/nosetests-2.7.1.gz
/usr/share/man/man1/nosetests.1.gz

References

Summary

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