How To Install gmic on Ubuntu 22.04

In this tutorial we learn how to install gmic on Ubuntu 22.04. gmic is GREYCs Magic for Image Computing

Introduction

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

What is gmic

gmic is:

G’MIC is an open and full-featured framework for image processing, providing several different user interfaces to convert/manipulate/filter/visualize generic image datasets, from 1d scalar signals to 3d+t sequences of multi-spectral volumetric images.

This package contains the stand-alone gmic binary.

There are three methods to install gmic 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 gmic Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gmic

Install gmic Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gmic

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

sudo aptitude -y install gmic

How To Uninstall gmic on Ubuntu 22.04

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

sudo apt-get remove gmic

Uninstall gmic And Its Dependencies

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

sudo apt-get -y autoremove gmic

Remove gmic Configurations and Data

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

sudo apt-get -y purge gmic

Remove gmic configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gmic

References

Summary

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