How To Install exiv2 on Ubuntu 20.04

In this tutorial we learn how to install exiv2 on Ubuntu 20.04. exiv2 is EXIF/IPTC/XMP metadata manipulation tool EXIF/IPTC/XMP metadata manipulation tool

Introduction

In this tutorial we learn how to install exiv2 on Ubuntu 20.04.

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

Package: exiv2 Architecture: amd64 Version: 0.27.2-8ubuntu2 Priority: optional Section: universe/graphics Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian KDE Extras Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 306 Depends: libexiv2-27 (= 0.27.2-8ubuntu2), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2) Filename: pool/universe/e/exiv2/exiv2_0.27.2-8ubuntu2_amd64.deb Size: 96584 MD5sum: 4bff6200d56beb64fcf3a3cd2496f6be SHA1: 1c3ebb2e2e3c14f22f286d9f59b259a497ee6423 SHA256: ac9e7ee09bda7ff4fd786a7fdb3f0e963d6051060d69d8acd82d493dce0109c5 Homepage: https://www.exiv2.org/ Description-en: EXIF/IPTC/XMP metadata manipulation tool 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 Ubuntu 20.04. 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 Ubuntu. 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 Ubuntu 20.04

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 Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove exiv2

Remove exiv2 Configurations and Data

To remove exiv2 configuration and data from Ubuntu 20.04 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

References

Summary

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