How To Install python3-flake8 on Rocky Linux 8

In this tutorial we learn how to install python3-flake8 on Rocky Linux 8. python3-flake8 is Python code checking using pyflakes, pycodestyle, and mccabe

Introduction

In this tutorial we learn how to install python3-flake8 on Rocky Linux 8.

What is python3-flake8

Flake8 is a wrapper around PyFlakes, pycodestyle, and Ned’s McCabe script. It runs all the tools by launching the single flake8 script, and displays the warnings in a per-file, merged output. It also adds a few features skipped, lines that contain a “# noqa” comment at the end will not issue warnings, Git and Mercurial hooks are included, a McCabe complexity checker is included, and it is extendable through flake8.extension entry points.

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

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

sudo dnf -y install python3-flake8

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

sudo yum -y install python3-flake8

How To Uninstall python3-flake8 on Rocky Linux 8

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

sudo dnf remove python3-flake8

python3-flake8 Package Contents on Rocky Linux 8

/usr/bin/flake8
/usr/bin/flake8-3
/usr/bin/flake8-3.6
/usr/bin/python3-flake8
/usr/lib/python3.6/site-packages/flake8
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/flake8-3.7.7-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/flake8/__init__.py
/usr/lib/python3.6/site-packages/flake8/__main__.py
/usr/lib/python3.6/site-packages/flake8/__pycache__
/usr/lib/python3.6/site-packages/flake8/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/checker.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/checker.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/defaults.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/defaults.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/processor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/processor.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/statistics.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/statistics.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/style_guide.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/style_guide.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/api
/usr/lib/python3.6/site-packages/flake8/api/__init__.py
/usr/lib/python3.6/site-packages/flake8/api/__pycache__
/usr/lib/python3.6/site-packages/flake8/api/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/api/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/api/__pycache__/legacy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/api/__pycache__/legacy.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/api/legacy.py
/usr/lib/python3.6/site-packages/flake8/checker.py
/usr/lib/python3.6/site-packages/flake8/defaults.py
/usr/lib/python3.6/site-packages/flake8/exceptions.py
/usr/lib/python3.6/site-packages/flake8/formatting
/usr/lib/python3.6/site-packages/flake8/formatting/__init__.py
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/base.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/base.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/default.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/__pycache__/default.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/formatting/base.py
/usr/lib/python3.6/site-packages/flake8/formatting/default.py
/usr/lib/python3.6/site-packages/flake8/main
/usr/lib/python3.6/site-packages/flake8/main/__init__.py
/usr/lib/python3.6/site-packages/flake8/main/__pycache__
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/application.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/application.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/debug.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/debug.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/git.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/git.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/mercurial.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/mercurial.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/options.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/options.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/setuptools_command.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/setuptools_command.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/vcs.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/main/__pycache__/vcs.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/main/application.py
/usr/lib/python3.6/site-packages/flake8/main/cli.py
/usr/lib/python3.6/site-packages/flake8/main/debug.py
/usr/lib/python3.6/site-packages/flake8/main/git.py
/usr/lib/python3.6/site-packages/flake8/main/mercurial.py
/usr/lib/python3.6/site-packages/flake8/main/options.py
/usr/lib/python3.6/site-packages/flake8/main/setuptools_command.py
/usr/lib/python3.6/site-packages/flake8/main/vcs.py
/usr/lib/python3.6/site-packages/flake8/options
/usr/lib/python3.6/site-packages/flake8/options/__init__.py
/usr/lib/python3.6/site-packages/flake8/options/__pycache__
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/aggregator.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/aggregator.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/manager.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/options/__pycache__/manager.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/options/aggregator.py
/usr/lib/python3.6/site-packages/flake8/options/config.py
/usr/lib/python3.6/site-packages/flake8/options/manager.py
/usr/lib/python3.6/site-packages/flake8/plugins
/usr/lib/python3.6/site-packages/flake8/plugins/__init__.py
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/manager.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/manager.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/pyflakes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/__pycache__/pyflakes.cpython-36.pyc
/usr/lib/python3.6/site-packages/flake8/plugins/manager.py
/usr/lib/python3.6/site-packages/flake8/plugins/pyflakes.py
/usr/lib/python3.6/site-packages/flake8/processor.py
/usr/lib/python3.6/site-packages/flake8/statistics.py
/usr/lib/python3.6/site-packages/flake8/style_guide.py
/usr/lib/python3.6/site-packages/flake8/utils.py
/usr/share/doc/python3-flake8
/usr/share/doc/python3-flake8/CONTRIBUTORS.txt
/usr/share/doc/python3-flake8/README.rst

References

Summary

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