How To Install python-json-pointer on Ubuntu 18.04

In this tutorial we learn how to install python-json-pointer on Ubuntu 18.04. python-json-pointer is resolve JSON pointers - Python 2.7

Introduction

In this tutorial we learn how to install python-json-pointer on Ubuntu 18.04.

What is python-json-pointer

python-json-pointer is:

Python-json-pointer is a small library to resolve JSON pointers according to the IETF draft specification. JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document.

This package provides the module for Python 2.x.

There are three methods to install python-json-pointer on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-json-pointer Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-json-pointer using apt-get by running the following command:

sudo apt-get -y install python-json-pointer

Install python-json-pointer Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-json-pointer using apt by running the following command:

sudo apt -y install python-json-pointer

Install python-json-pointer Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-json-pointer using aptitude by running the following command:

sudo aptitude -y install python-json-pointer

How To Uninstall python-json-pointer on Ubuntu 18.04

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

sudo apt-get remove python-json-pointer

Uninstall python-json-pointer And Its Dependencies

To uninstall python-json-pointer and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-json-pointer

Remove python-json-pointer Configurations and Data

To remove python-json-pointer configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-json-pointer

Remove python-json-pointer configuration, data, and all of its dependencies

We can use the following command to remove python-json-pointer configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-json-pointer

References

Summary

In this tutorial we learn how to install python-json-pointer package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.