How To Install python3-coverage on Fedora 36

In this tutorial we learn how to install python3-coverage in Fedora 36. python3-coverage is Code coverage testing module for Python 3

Introduction

In this tutorial we learn how to install python3-coverage on Fedora 36.

What is python3-coverage

Coverage.py is a Python 3 module that measures code coverage during Python execution. It uses the code analysis tools and tracing hooks provided in the Python standard library to determine which lines are executable, and which have been executed.

We can use yum or dnf to install python3-coverage on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-coverage.

Install python3-coverage on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-coverage using dnf by running the following command:

sudo dnf -y install python3-coverage

Install python3-coverage on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-coverage using yum by running the following command:

sudo yum -y install python3-coverage

How To Uninstall python3-coverage on Fedora 36

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

sudo dnf remove python3-coverage

python3-coverage Package Contents on Fedora 36

/usr/bin/coverage
/usr/bin/coverage-3
/usr/bin/coverage-3.10
/usr/bin/coverage3
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/5c86d965c151d34770b36ef0d2244052928be2
/usr/lib64/python3.10/site-packages/coverage
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/entry_points.txt
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/coverage-6.3-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/coverage/__init__.py
/usr/lib64/python3.10/site-packages/coverage/__main__.py
/usr/lib64/python3.10/site-packages/coverage/__pycache__
/usr/lib64/python3.10/site-packages/coverage/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/__main__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/annotate.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/annotate.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/bytecode.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/bytecode.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/cmdline.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/cmdline.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/collector.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/collector.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/config.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/context.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/context.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/control.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/control.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/data.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/data.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/debug.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/debug.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/disposition.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/disposition.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/env.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/env.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/exceptions.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/execfile.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/execfile.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/files.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/files.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/html.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/html.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/inorout.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/inorout.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/jsonreport.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/jsonreport.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/lcovreport.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/lcovreport.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/misc.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/misc.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/multiproc.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/multiproc.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/numbits.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/numbits.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/parser.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/parser.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/phystokens.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/phystokens.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/plugin.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/plugin_support.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/plugin_support.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/python.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/python.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/pytracer.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/pytracer.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/report.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/report.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/results.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/results.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/sqldata.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/sqldata.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/summary.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/summary.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/templite.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/templite.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/tomlconfig.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/tomlconfig.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/xmlreport.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/__pycache__/xmlreport.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/annotate.py
/usr/lib64/python3.10/site-packages/coverage/bytecode.py
/usr/lib64/python3.10/site-packages/coverage/cmdline.py
/usr/lib64/python3.10/site-packages/coverage/collector.py
/usr/lib64/python3.10/site-packages/coverage/config.py
/usr/lib64/python3.10/site-packages/coverage/context.py
/usr/lib64/python3.10/site-packages/coverage/control.py
/usr/lib64/python3.10/site-packages/coverage/data.py
/usr/lib64/python3.10/site-packages/coverage/debug.py
/usr/lib64/python3.10/site-packages/coverage/disposition.py
/usr/lib64/python3.10/site-packages/coverage/env.py
/usr/lib64/python3.10/site-packages/coverage/exceptions.py
/usr/lib64/python3.10/site-packages/coverage/execfile.py
/usr/lib64/python3.10/site-packages/coverage/files.py
/usr/lib64/python3.10/site-packages/coverage/fullcoverage
/usr/lib64/python3.10/site-packages/coverage/fullcoverage/__pycache__
/usr/lib64/python3.10/site-packages/coverage/fullcoverage/__pycache__/encodings.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/coverage/fullcoverage/__pycache__/encodings.cpython-310.pyc
/usr/lib64/python3.10/site-packages/coverage/fullcoverage/encodings.py
/usr/lib64/python3.10/site-packages/coverage/html.py
/usr/lib64/python3.10/site-packages/coverage/htmlfiles
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/coverage_html.js
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/favicon_32.png
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/index.html
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/keybd_closed.png
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/keybd_open.png
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/pyfile.html
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/style.css
/usr/lib64/python3.10/site-packages/coverage/htmlfiles/style.scss
/usr/lib64/python3.10/site-packages/coverage/inorout.py
/usr/lib64/python3.10/site-packages/coverage/jsonreport.py
/usr/lib64/python3.10/site-packages/coverage/lcovreport.py
/usr/lib64/python3.10/site-packages/coverage/misc.py
/usr/lib64/python3.10/site-packages/coverage/multiproc.py
/usr/lib64/python3.10/site-packages/coverage/numbits.py
/usr/lib64/python3.10/site-packages/coverage/parser.py
/usr/lib64/python3.10/site-packages/coverage/phystokens.py
/usr/lib64/python3.10/site-packages/coverage/plugin.py
/usr/lib64/python3.10/site-packages/coverage/plugin_support.py
/usr/lib64/python3.10/site-packages/coverage/python.py
/usr/lib64/python3.10/site-packages/coverage/pytracer.py
/usr/lib64/python3.10/site-packages/coverage/report.py
/usr/lib64/python3.10/site-packages/coverage/results.py
/usr/lib64/python3.10/site-packages/coverage/sqldata.py
/usr/lib64/python3.10/site-packages/coverage/summary.py
/usr/lib64/python3.10/site-packages/coverage/templite.py
/usr/lib64/python3.10/site-packages/coverage/tomlconfig.py
/usr/lib64/python3.10/site-packages/coverage/tracer.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/coverage/version.py
/usr/lib64/python3.10/site-packages/coverage/xmlreport.py
/usr/share/doc/python3-coverage
/usr/share/doc/python3-coverage/README.rst
/usr/share/licenses/python3-coverage
/usr/share/licenses/python3-coverage/LICENSE.txt
/usr/share/licenses/python3-coverage/NOTICE.txt

References

Summary

In this tutorial we learn how to install python3-coverage on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).