How To Install python2-mimerender on CentOS 7
Introduction
In this tutorial we learn how to install python2-mimerender
on CentOS 7.
What is python2-mimerender
mimerender provides a decorator that wraps a HTTP request handler to select the correct render function for a given HTTP Accept header. It uses mimeparse to parse the accept string and select the best available representation. Supports Flask, Bottle, web.py and webapp2 out of the box, and it’s easy to add support for other frameworks. This is the Python 2 build of mimerender.
We can use yum
or dnf
to install python2-mimerender
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python2-mimerender.
Install python2-mimerender 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-mimerender
using yum
by running the following command:
sudo yum -y install python2-mimerender
Install python2-mimerender 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-mimerender
using dnf
by running the following command:
sudo dnf -y install python2-mimerender
How To Uninstall python2-mimerender on CentOS 7
To uninstall only the python2-mimerender
package we can use the following command:
sudo dnf remove python2-mimerender
References
Summary
In this tutorial we learn how to install python2-mimerender
on CentOS 7 using yum
and dnf
.