How To Install python2-whitenoise on CentOS 7
Introduction
In this tutorial we learn how to install python2-whitenoise
on CentOS 7.
What is python2-whitenoise
Radically simplified static file serving for python web apps. with a couple of lines of config whitenoise allows your web app to serve its own static files, making it a self-contained unit that can be deployed anywhere without relying on nginx, amazon s3 or any other external service. (Especially useful on Heroku, OpenShift and other PaaS providers.)
We can use yum
or dnf
to install python2-whitenoise
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python2-whitenoise.
Install python2-whitenoise on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install python2-whitenoise
using yum
by running the following command:
sudo yum -y install python2-whitenoise
Install python2-whitenoise 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 python2-whitenoise
using dnf
by running the following command:
sudo dnf -y install python2-whitenoise
How To Uninstall python2-whitenoise on CentOS 7
To uninstall only the python2-whitenoise
package we can use the following command:
sudo dnf remove python2-whitenoise
References
Summary
In this tutorial we learn how to install python2-whitenoise
on CentOS 7 using yum
and dnf
.