How To Install python-django-piston on CentOS 7

In this tutorial we learn how to install python-django-piston on CentOS 7. python-django-piston is A mini-framework for Django for creating RESTful APIs

Introduction

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

What is python-django-piston

Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites.

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

Install python-django-piston 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-django-piston using yum by running the following command:

sudo yum -y install python-django-piston

Install python-django-piston 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-django-piston using dnf by running the following command:

sudo dnf -y install python-django-piston

How To Uninstall python-django-piston on CentOS 7

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

sudo dnf remove python-django-piston

References

Summary

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