exiv2 command not found

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

Introduction

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

exiv2: command not found

or when using sudo you get the following error message

sudo: exiv2: command not found

Solutions to exiv2: command not found

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

In Ubuntu exiv2 is provided by exiv2 package.

exiv2 is:

Exiv2 is a C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata of images in various formats

Exiv2 command line utility to:

  • print Exif, IPTC and XMP image metadata in different formats:
    • Exif summary info, interpreted values, or the plain data for each tag
  • set, add and delete Exif, IPTC and XMP image metadata from command line modify commands or command scripts
  • adjust the Exif timestamp (that’s how it all started…)
  • rename Exif image files according to the Exif timestamp
  • extract, insert and delete Exif, IPTC and XMP metadata and JPEG comments
  • extract previews from RAW images and thumbnails from the Exif metadata
  • insert and delete the thumbnail image embedded in the Exif metadata
  • print, set and delete the JPEG comment of JPEG images
  • fix the Exif ISO setting of picture taken with Canon and Nikon cameras

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

sudo apt-get -y install exiv2

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

You can also use apt command to install exiv2.

sudo apt -y install exiv2

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

sudo aptitude install exiv2

Summary

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