How To Install python3-flask on AlmaLinux 8

In this tutorial we learn how to install python3-flask in AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove python3-flask

References

Summary

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