How To Install exiv2 on Debian 10

Learn how to install exiv2 on Debian 10 with this tutorial. exiv2 is EXIF/IPTC/XMP metadata manipulation tool

Introduction

In this tutorial we learn how to install exiv2 on Debian 10.

What is exiv2

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

There are three methods to install exiv2 on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install exiv2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install exiv2 using apt-get by running the following command:

sudo apt-get -y install exiv2

Install exiv2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install exiv2 using apt by running the following command:

sudo apt -y install exiv2

Install exiv2 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install exiv2 using aptitude by running the following command:

sudo aptitude -y install exiv2

How To Uninstall exiv2 on Debian 10

To uninstall only the exiv2 package we can use the following command:

sudo apt-get remove exiv2

Uninstall exiv2 And Its Dependencies

To uninstall exiv2 and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove exiv2

Remove exiv2 Configurations and Data

To remove exiv2 configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge exiv2

Remove exiv2 configuration, data, and all of its dependencies

We can use the following command to remove exiv2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge exiv2

Dependencies

exiv2 have the following dependencies:

References

Summary

In this tutorial we learn how to install exiv2 package on Debian 10 using different package management tools: apt, apt-get and aptitude.