How To Install python-webflash on CentOS 7

In this tutorial we learn how to install python-webflash on CentOS 7. python-webflash is Portable flash messages for WSGI apps

Introduction

In this tutorial we learn how to install python-webflash on CentOS 7.

What is python-webflash

WebFlash is a library to display “flash” messages in python web applications. These messages are usually used to provide feedback to the user (eg number has been stolen, …). One important characteristic they must provide is the ability to survive a redirect (ie message in a page after being redirected from a form submission).

We can use yum or dnf to install python-webflash on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-webflash.

Install python-webflash on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-webflash

Install python-webflash on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install python-webflash

How To Uninstall python-webflash on CentOS 7

To uninstall only the python-webflash package we can use the following command:

sudo dnf remove python-webflash

References

Summary

In this tutorial we learn how to install python-webflash on CentOS 7 using yum and dnf.