makepatch command not found

In this troubleshooting guide we learn how to fix makepatch command not found error message

Introduction

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

makepatch: command not found

or when using sudo you get the following error message

sudo: makepatch: command not found

Solutions to makepatch: command not found

How To Fix makepatch: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu makepatch is provided by makepatch package.

makepatch is:

This package contains a pair of programs, makepatch and applypatch, to assist in the generation and application of patch kits to synchronise source trees.

makepatch knows about common conventions for patch kits (it generates Index: and Prereq: lines, it patches patchlevel.h first, it can use manifest files), plus it prepends some shell code which if run will take care adding directories, removing files, setting execute mode on scripts, and the like.

applypatch uses some extra data supplied by makepatch to verify both the patch and the source directory before applying the patch. Afterwards it will clean up the directory tree plus fix up the permissions and even the timestamps on the patched files.

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

sudo apt-get -y install makepatch

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

You can also use apt command to install makepatch.

sudo apt -y install makepatch

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

sudo aptitude install makepatch

Summary

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