How To Install python3-unittest2 on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-unittest2
on Rocky Linux 8.
What is python3-unittest2
unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7 and onwards. It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.
We can use yum
or dnf
to install python3-unittest2
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-unittest2.
Install python3-unittest2 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-unittest2
using dnf
by running the following command:
sudo dnf -y install python3-unittest2
Install python3-unittest2 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-unittest2
using yum
by running the following command:
sudo yum -y install python3-unittest2
How To Uninstall python3-unittest2 on Rocky Linux 8
To uninstall only the python3-unittest2
package we can use the following command:
sudo dnf remove python3-unittest2
python3-unittest2 Package Contents on Rocky Linux 8
/usr/bin/python3-unit2
/usr/bin/unit2-3
/usr/bin/unit2-3.6
/usr/lib/python3.6/site-packages/unittest2
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/unittest2-1.1.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/unittest2/__init__.py
/usr/lib/python3.6/site-packages/unittest2/__main__.py
/usr/lib/python3.6/site-packages/unittest2/__pycache__
/usr/lib/python3.6/site-packages/unittest2/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/case.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/case.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/compatibility.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/compatibility.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/loader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/loader.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/main.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/result.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/result.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/runner.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/runner.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/signals.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/signals.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/suite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/suite.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/case.py
/usr/lib/python3.6/site-packages/unittest2/collector.py
/usr/lib/python3.6/site-packages/unittest2/compatibility.py
/usr/lib/python3.6/site-packages/unittest2/loader.py
/usr/lib/python3.6/site-packages/unittest2/main.py
/usr/lib/python3.6/site-packages/unittest2/result.py
/usr/lib/python3.6/site-packages/unittest2/runner.py
/usr/lib/python3.6/site-packages/unittest2/signals.py
/usr/lib/python3.6/site-packages/unittest2/suite.py
/usr/lib/python3.6/site-packages/unittest2/test
/usr/lib/python3.6/site-packages/unittest2/test/__init__.py
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/_test_unittest2_with.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/_test_unittest2_with.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/dummy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/dummy.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/support.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/support.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_assertions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_assertions.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_break.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_break.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_case.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_case.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_discovery.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_discovery.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_functiontestcase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_functiontestcase.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_loader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_loader.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_new_tests.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_new_tests.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_program.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_program.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_result.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_result.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_runner.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_runner.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_setups.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_setups.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_skipping.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_skipping.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_suite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_suite.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_unittest2_with.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/unittest2/test/__pycache__/test_unittest2_with.cpython-36.pyc
/usr/lib/python3.6/site-packages/unittest2/test/_test_unittest2_with.py
/usr/lib/python3.6/site-packages/unittest2/test/dummy.py
/usr/lib/python3.6/site-packages/unittest2/test/support.py
/usr/lib/python3.6/site-packages/unittest2/test/test_assertions.py
/usr/lib/python3.6/site-packages/unittest2/test/test_break.py
/usr/lib/python3.6/site-packages/unittest2/test/test_case.py
/usr/lib/python3.6/site-packages/unittest2/test/test_discovery.py
/usr/lib/python3.6/site-packages/unittest2/test/test_functiontestcase.py
/usr/lib/python3.6/site-packages/unittest2/test/test_loader.py
/usr/lib/python3.6/site-packages/unittest2/test/test_new_tests.py
/usr/lib/python3.6/site-packages/unittest2/test/test_program.py
/usr/lib/python3.6/site-packages/unittest2/test/test_result.py
/usr/lib/python3.6/site-packages/unittest2/test/test_runner.py
/usr/lib/python3.6/site-packages/unittest2/test/test_setups.py
/usr/lib/python3.6/site-packages/unittest2/test/test_skipping.py
/usr/lib/python3.6/site-packages/unittest2/test/test_suite.py
/usr/lib/python3.6/site-packages/unittest2/test/test_unittest2_with.py
/usr/lib/python3.6/site-packages/unittest2/util.py
/usr/share/doc/python3-unittest2
/usr/share/doc/python3-unittest2/README.txt
References
Summary
In this tutorial we learn how to install python3-unittest2
on Rocky Linux 8 using yum and dnf.