How To Install python3-hacking on Fedora 36

In this tutorial we learn how to install python3-hacking in Fedora 36. python3-hacking is OpenStack Hacking Guideline Enforcement

Introduction

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

What is python3-hacking

OpenStack Hacking Guideline Enforcement plugin for flake8.

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

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

sudo dnf -y install python3-hacking

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

sudo yum -y install python3-hacking

How To Uninstall python3-hacking on Fedora 36

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

sudo dnf remove python3-hacking

python3-hacking Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/hacking
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/hacking-4.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/hacking/__init__.py
/usr/lib/python3.10/site-packages/hacking/__pycache__
/usr/lib/python3.10/site-packages/hacking/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/__pycache__/core.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/__pycache__/core.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks
/usr/lib/python3.10/site-packages/hacking/checks/__init__.py
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/comments.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/comments.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/dictlist.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/dictlist.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/docstrings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/docstrings.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/except_checks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/except_checks.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/imports.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/imports.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/localization.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/localization.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/mock_checks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/mock_checks.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/other.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/other.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/python23.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/python23.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/vim_check.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/checks/__pycache__/vim_check.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/checks/comments.py
/usr/lib/python3.10/site-packages/hacking/checks/dictlist.py
/usr/lib/python3.10/site-packages/hacking/checks/docstrings.py
/usr/lib/python3.10/site-packages/hacking/checks/except_checks.py
/usr/lib/python3.10/site-packages/hacking/checks/imports.py
/usr/lib/python3.10/site-packages/hacking/checks/localization.py
/usr/lib/python3.10/site-packages/hacking/checks/mock_checks.py
/usr/lib/python3.10/site-packages/hacking/checks/other.py
/usr/lib/python3.10/site-packages/hacking/checks/python23.py
/usr/lib/python3.10/site-packages/hacking/checks/vim_check.py
/usr/lib/python3.10/site-packages/hacking/config.py
/usr/lib/python3.10/site-packages/hacking/core.py
/usr/lib/python3.10/site-packages/hacking/tests
/usr/lib/python3.10/site-packages/hacking/tests/__init__.py
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_config.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_doctest.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_doctest.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_import_exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/__pycache__/test_import_exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks
/usr/lib/python3.10/site-packages/hacking/tests/checks/__init__.py
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_comments.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_comments.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_except_checks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_except_checks.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_other.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/__pycache__/test_other.cpython-310.pyc
/usr/lib/python3.10/site-packages/hacking/tests/checks/test_comments.py
/usr/lib/python3.10/site-packages/hacking/tests/checks/test_except_checks.py
/usr/lib/python3.10/site-packages/hacking/tests/checks/test_other.py
/usr/lib/python3.10/site-packages/hacking/tests/test_config.py
/usr/lib/python3.10/site-packages/hacking/tests/test_doctest.py
/usr/lib/python3.10/site-packages/hacking/tests/test_import_exceptions.py
/usr/share/doc/python3-hacking
/usr/share/doc/python3-hacking/README.rst
/usr/share/doc/python3-hacking/html
/usr/share/doc/python3-hacking/html/_sources
/usr/share/doc/python3-hacking/html/_sources/contributor
/usr/share/doc/python3-hacking/html/_sources/contributor/contributing.rst.txt
/usr/share/doc/python3-hacking/html/_sources/index.rst.txt
/usr/share/doc/python3-hacking/html/_sources/user
/usr/share/doc/python3-hacking/html/_sources/user/hacking.rst.txt
/usr/share/doc/python3-hacking/html/_sources/user/index.rst.txt
/usr/share/doc/python3-hacking/html/_sources/user/usage.rst.txt
/usr/share/doc/python3-hacking/html/_static
/usr/share/doc/python3-hacking/html/_static/basic.css
/usr/share/doc/python3-hacking/html/_static/css
/usr/share/doc/python3-hacking/html/_static/css/bootstrap.css
/usr/share/doc/python3-hacking/html/_static/css/bootstrap.min.css
/usr/share/doc/python3-hacking/html/_static/css/combined.css
/usr/share/doc/python3-hacking/html/_static/css/font-awesome.css
/usr/share/doc/python3-hacking/html/_static/css/font-awesome.min.css
/usr/share/doc/python3-hacking/html/_static/css/search.css
/usr/share/doc/python3-hacking/html/_static/doctools.js
/usr/share/doc/python3-hacking/html/_static/documentation_options.js
/usr/share/doc/python3-hacking/html/_static/favicon.ico
/usr/share/doc/python3-hacking/html/_static/file.png
/usr/share/doc/python3-hacking/html/_static/fonts
/usr/share/doc/python3-hacking/html/_static/fonts/FontAwesome.otf
/usr/share/doc/python3-hacking/html/_static/fonts/fontawesome-webfont.eot
/usr/share/doc/python3-hacking/html/_static/fonts/fontawesome-webfont.svg
/usr/share/doc/python3-hacking/html/_static/fonts/fontawesome-webfont.ttf
/usr/share/doc/python3-hacking/html/_static/fonts/fontawesome-webfont.woff
/usr/share/doc/python3-hacking/html/_static/fonts/fontawesome-webfont.woff2
/usr/share/doc/python3-hacking/html/_static/fonts/glyphicons-halflings-regular.eot
/usr/share/doc/python3-hacking/html/_static/fonts/glyphicons-halflings-regular.svg
/usr/share/doc/python3-hacking/html/_static/fonts/glyphicons-halflings-regular.ttf
/usr/share/doc/python3-hacking/html/_static/fonts/glyphicons-halflings-regular.woff
/usr/share/doc/python3-hacking/html/_static/fonts/glyphicons-halflings-regular.woff2
/usr/share/doc/python3-hacking/html/_static/images
/usr/share/doc/python3-hacking/html/_static/images/docs
/usr/share/doc/python3-hacking/html/_static/images/docs/license.png
/usr/share/doc/python3-hacking/html/_static/images/docs/superuser1.png
/usr/share/doc/python3-hacking/html/_static/images/docs/superuser2.png
/usr/share/doc/python3-hacking/html/_static/images/docs/superuser3.png
/usr/share/doc/python3-hacking/html/_static/images/docs/superuser4.png
/usr/share/doc/python3-hacking/html/_static/images/footer-facebook-hover.png
/usr/share/doc/python3-hacking/html/_static/images/footer-facebook.png
/usr/share/doc/python3-hacking/html/_static/images/footer-linkedin-hover.png
/usr/share/doc/python3-hacking/html/_static/images/footer-linkedin.png
/usr/share/doc/python3-hacking/html/_static/images/footer-twitter-hover.png
/usr/share/doc/python3-hacking/html/_static/images/footer-twitter.png
/usr/share/doc/python3-hacking/html/_static/images/footer-youtube-hover.png
/usr/share/doc/python3-hacking/html/_static/images/footer-youtube.png
/usr/share/doc/python3-hacking/html/_static/images/loading.gif
/usr/share/doc/python3-hacking/html/_static/images/logo-full.png
/usr/share/doc/python3-hacking/html/_static/images/logo-full.svg
/usr/share/doc/python3-hacking/html/_static/images/logo-vert.png
/usr/share/doc/python3-hacking/html/_static/images/logo-vert.svg
/usr/share/doc/python3-hacking/html/_static/images/openstack-logo-full.png
/usr/share/doc/python3-hacking/html/_static/images/openstack-logo-full.svg
/usr/share/doc/python3-hacking/html/_static/images/openstack-logo-vert.png
/usr/share/doc/python3-hacking/html/_static/images/openstack-logo-vert.svg
/usr/share/doc/python3-hacking/html/_static/images/search-icon.png
/usr/share/doc/python3-hacking/html/_static/jquery-3.5.1.js
/usr/share/doc/python3-hacking/html/_static/jquery.js
/usr/share/doc/python3-hacking/html/_static/js
/usr/share/doc/python3-hacking/html/_static/js/bootstrap.js
/usr/share/doc/python3-hacking/html/_static/js/bootstrap.min.js
/usr/share/doc/python3-hacking/html/_static/js/docs.js
/usr/share/doc/python3-hacking/html/_static/js/jquery-3.2.1.js
/usr/share/doc/python3-hacking/html/_static/js/jquery-3.2.1.min.js
/usr/share/doc/python3-hacking/html/_static/js/navigation.js
/usr/share/doc/python3-hacking/html/_static/language_data.js
/usr/share/doc/python3-hacking/html/_static/minus.png
/usr/share/doc/python3-hacking/html/_static/plus.png
/usr/share/doc/python3-hacking/html/_static/pygments.css
/usr/share/doc/python3-hacking/html/_static/searchtools.js
/usr/share/doc/python3-hacking/html/_static/underscore-1.13.1.js
/usr/share/doc/python3-hacking/html/_static/underscore.js
/usr/share/doc/python3-hacking/html/contributor
/usr/share/doc/python3-hacking/html/contributor/contributing.html
/usr/share/doc/python3-hacking/html/genindex.html
/usr/share/doc/python3-hacking/html/index.html
/usr/share/doc/python3-hacking/html/objects.inv
/usr/share/doc/python3-hacking/html/search.html
/usr/share/doc/python3-hacking/html/searchindex.js
/usr/share/doc/python3-hacking/html/user
/usr/share/doc/python3-hacking/html/user/hacking.html
/usr/share/doc/python3-hacking/html/user/index.html
/usr/share/doc/python3-hacking/html/user/usage.html
/usr/share/licenses/python3-hacking
/usr/share/licenses/python3-hacking/LICENSE

References

Summary

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