jsonpatch command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
jsonpatch: command not found
or when using sudo you get the following error message
sudo: jsonpatch: command not found
Solutions to jsonpatch: command not found
How To Fix jsonpatch: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu jsonpatch is provided by python3-jsonpatch package.
python3-jsonpatch is:
Python-json-patch is a Python module (a library) to apply JSON Patches according to the IETF draft specification.
From the IETF site:
JavaScript Object Notation (JSON) [RFC4627] is a common format for the exchange and storage of structured data. HTTP PATCH [RFC5789] extends the Hypertext Transfer Protocol (HTTP) [RFC2616] with a method to perform partial modifications to resources.
JSON Patch is a format (identified by the media type “application/ json-patch”) for expressing a sequence of operations to apply to a target JSON document, suitable for use with the HTTP PATCH method.
This format is also potentially useful in other cases when it’s necessary to make partial updates to a JSON document.
This package provides the Python 3.x module.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-jsonpatch
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-jsonpatch.
sudo apt -y install python3-jsonpatch
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-jsonpatch
Summary
In this tutorial we learn how to fix jsonpatch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.