json-patch command not found

In this troubleshooting guide we learn how to fix json-patch command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

json-patch: command not found

or when using sudo you get the following error message

sudo: json-patch: command not found

Solutions to json-patch: command not found

How To Fix json-patch: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu json-patch is provided by haskell-aeson-diff-utils package.

haskell-aeson-diff-utils is:

This is a small library for working with changes to JSON documents. It includes a library and two command-line executables in the style of the diff(1) and patch(1) commands available on many systems.

To fix this problem, we can install more using the command below.

sudo apt-get -y install haskell-aeson-diff-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install haskell-aeson-diff-utils.

sudo apt -y install haskell-aeson-diff-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install haskell-aeson-diff-utils

Summary

In this tutorial we learn how to fix json-patch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.