How To Install imageinfo on Ubuntu 22.04

In this tutorial we learn how to install imageinfo on Ubuntu 22.04. imageinfo is Displays selected image attributes

Introduction

In this tutorial we learn how to install imageinfo on Ubuntu 22.04.

What is imageinfo

imageinfo is:

imageinfo prints image attributes (e.g. format, geometry) selected via command line options. It is similar in function to the ImageMagick “identify” utility, but provides some additional attributes (such as details of embedded ICC profiles), and is more convenient for use within a script since the command line selection of specific attributes avoids unnecessary computation and allows easier parsing of the result.

There are three methods to install imageinfo on Ubuntu 22.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 imageinfo Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install imageinfo

Install imageinfo Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install imageinfo

Install imageinfo 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 imageinfo using aptitude by running the following command:

sudo aptitude -y install imageinfo

How To Uninstall imageinfo on Ubuntu 22.04

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

sudo apt-get remove imageinfo

Uninstall imageinfo And Its Dependencies

To uninstall imageinfo and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove imageinfo

Remove imageinfo Configurations and Data

To remove imageinfo configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge imageinfo

Remove imageinfo configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge imageinfo

References

Summary

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