How To Install python3-flask on Rocky Linux 8

In this tutorial we learn how to install python3-flask on Rocky Linux 8. python3-flask is A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions

Introduction

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

What is python3-flask

Flask is called a “micro-framework” because the idea to keep the core simple but extensible. There is no database abstraction layer, no form validation or anything else where different libraries already exist that can handle that. However Flask knows the concept of extensions that can add this functionality into your application as if it was implemented in Flask itself. There are currently extensions for object relational mappers, form validation, upload handling, various open authentication technologies and more. Python 3 version.

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

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

sudo dnf -y install python3-flask

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

sudo yum -y install python3-flask

How To Uninstall python3-flask on Rocky Linux 8

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

sudo dnf remove python3-flask

python3-flask Package Contents on Rocky Linux 8

/usr/bin/flask
/usr/bin/flask-3
/usr/bin/flask-3.6
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/flask
/usr/lib/python3.6/site-packages/flask/__init__.py
/usr/lib/python3.6/site-packages/flask/__main__.py
/usr/lib/python3.6/site-packages/flask/__pycache__
/usr/lib/python3.6/site-packages/flask/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/_compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/_compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/app.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/app.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/blueprints.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/blueprints.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/ctx.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/ctx.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/debughelpers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/debughelpers.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/exthook.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/exthook.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/globals.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/globals.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/helpers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/helpers.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/json.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/json.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/logging.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/logging.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/sessions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/sessions.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/signals.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/signals.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/templating.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/templating.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/testing.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/testing.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/views.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/views.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/wrappers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/__pycache__/wrappers.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/_compat.py
/usr/lib/python3.6/site-packages/flask/app.py
/usr/lib/python3.6/site-packages/flask/blueprints.py
/usr/lib/python3.6/site-packages/flask/cli.py
/usr/lib/python3.6/site-packages/flask/config.py
/usr/lib/python3.6/site-packages/flask/ctx.py
/usr/lib/python3.6/site-packages/flask/debughelpers.py
/usr/lib/python3.6/site-packages/flask/ext
/usr/lib/python3.6/site-packages/flask/ext/__init__.py
/usr/lib/python3.6/site-packages/flask/ext/__pycache__
/usr/lib/python3.6/site-packages/flask/ext/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/flask/ext/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/flask/exthook.py
/usr/lib/python3.6/site-packages/flask/globals.py
/usr/lib/python3.6/site-packages/flask/helpers.py
/usr/lib/python3.6/site-packages/flask/json.py
/usr/lib/python3.6/site-packages/flask/logging.py
/usr/lib/python3.6/site-packages/flask/sessions.py
/usr/lib/python3.6/site-packages/flask/signals.py
/usr/lib/python3.6/site-packages/flask/templating.py
/usr/lib/python3.6/site-packages/flask/testing.py
/usr/lib/python3.6/site-packages/flask/views.py
/usr/lib/python3.6/site-packages/flask/wrappers.py
/usr/share/doc/python3-flask
/usr/share/doc/python3-flask/CHANGES
/usr/share/doc/python3-flask/README
/usr/share/licenses/python3-flask
/usr/share/licenses/python3-flask/LICENSE

References

Summary

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