Linux

How to install python-jsonschema on Ubuntu 16.10 (Yakkety Yak)?

In this article we are going to learn the commands and steps to install python-jsonschema package on Ubuntu 16.10.

Quick installation of python-jsonschema:

Step 1: Update system:

sudo apt-get update

Step 2: Install: python-jsonschema

Ater updaing the OS run following command to install the packae:

sudo apt-get install python-jsonschema

Package Details

Package:python-jsonschema
Version:2.5.1-5
Maintainer:Ubuntu Developers
Home page:https://github.com/Julian/jsonschema
Description:An(other) implementation of JSON Schema (Draft 3 and 4) - Python 2.7 JSON Schema is a specification for a JSON-based format for defining the structure of JSON data. JSON Schema provides a contract for what JSON data is required for a given application and how it can be modified, much like what XML Schema provides for XML. JSON Schema is intended to provide validation, documentation, and interaction control of JSON data. . This package contains the Python 2.7 module.
Distro:Ubuntu 16.10
Release:
Repo/Section:python

How to install python-jsonschema on Ubuntu 16.10?

First of all update your system with the command:

sudo apt-get update

Above command will download the package lists for Ubuntu 16.10 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If python-jsonschema is not installed on your compter then the command 'dpkg -L python-jsonschema' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L python-jsonschema
dpkg-query: package 'python-jsonschema' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing python-jsonschema:

After system update use the following command to install python-jsonschema:

sudo apt-get install python-jsonschema

Above command will confirm before installing the package on your Ubuntu 16.10 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove python-jsonschema from Ubuntu 16.10?

Now we will see the commands for uninstalling the python-jsonschema from Ubuntu 16.10. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the python-jsonschema following command is used:

sudo apt-get remove  python-jsonschema

Following command is used to remove the python-jsonschema package along with its dependencies:

sudo apt-get remove --auto-remove python-jsonschema

This will remove python-jsonschema and all its dependent packages which is no longer needed in the system.

Completely removing python-jsonschema with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge python-jsonschema

or you can use following command also:

sudo apt-get purge --auto-remove python-jsonschema

Above command will remove all the configuration files and data associated with python-jsonschema package. You can can't recover the delete data, so, use this command with care.

Get our newsletter

Categories