pkdiff command not found

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

Introduction

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

pkdiff: command not found

or when using sudo you get the following error message

sudo: pkdiff: command not found

Solutions to pkdiff: command not found

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

In Ubuntu pkdiff is provided by pktools package.

pktools is:

Pktools is a collection of programs to perform operations, mostly on raster geolocated images. It heavily relies on the Geospatial Data Abstraction Library (GDAL) and OGR. The programs are similar to the GDAL tools (gdalinfo, gdal_translate, gdal_merge, …) and some of the functionalities provided in pktools already exist in the GDAL tools.

All utilities in pktools use command line options and have a built in help. They include more than thirty binaries to edit, change, crop, classify, compare, dump, fill, enhance images and many other common operations useful in the remote sensing field of image analysis.

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

sudo apt-get -y install pktools

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

You can also use apt command to install pktools.

sudo apt -y install pktools

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

sudo aptitude install pktools

Summary

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