latexdiff command not found

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

Introduction

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

latexdiff: command not found

or when using sudo you get the following error message

sudo: latexdiff: command not found

Solutions to latexdiff: command not found

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

In Ubuntu latexdiff is provided by latexdiff package.

latexdiff is:

latexdiff compares two LaTeX files and marks up significant differences between them (i.e. a diff for LaTeX files). It generates a new LaTeX file containing the annotated differences.

Various options are available for visual markup using standard LaTeX packages such as ‘color.sty’. Changes not directly affecting visible text, for example in formatting commands, are still marked in the LaTeX source.

A rudimentary revision facilility is provided by another Perl script, ’latexrevise’, which accepts or rejects all changes. Manual editing of the difference file can be used to override this default behaviour and accept or reject selected changes only.

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

sudo apt-get -y install latexdiff

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

You can also use apt command to install latexdiff.

sudo apt -y install latexdiff

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

sudo aptitude install latexdiff

Summary

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