How To Install python-jsonpath-rw on CentOS 7

In this tutorial we learn how to install python-jsonpath-rw on CentOS 7. python-jsonpath-rw is Extended implementation of JSONPath for Python

Introduction

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

What is python-jsonpath-rw

This library provides a robust and significantly extended implementation of JSONPath for Python, with a clear AST for meta-programming. It is tested with Python 2.6, 2.7, 3.2, 3.3, and PyPy. This library differs from other JSONPath implementations in that it is a full language implementation, meaning the JSONPath expressions are first class objects, easy to analyze, transform, parse, print, and extend.

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

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

sudo yum -y install python-jsonpath-rw

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

sudo dnf -y install python-jsonpath-rw

How To Uninstall python-jsonpath-rw on CentOS 7

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

sudo dnf remove python-jsonpath-rw

References

Summary

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