How To Install graphicsmagick-imagemagick-compat on Ubuntu 18.04

In this tutorial we learn how to install graphicsmagick-imagemagick-compat on Ubuntu 18.04. graphicsmagick-imagemagick-compat is image processing tools providing ImageMagick interface

Introduction

In this tutorial we learn how to install graphicsmagick-imagemagick-compat on Ubuntu 18.04.

What is graphicsmagick-imagemagick-compat

graphicsmagick-imagemagick-compat is:

GraphicsMagick provides a set of command-line applications to manipulate image files. It is a fork of the ImageMagick project and therefore offers a similar set of features, but puts a larger emphasis on stability.

With this package installed, the GraphicsMagick command line tools can be executed like their ImageMagick counterparts. It allows one to migrate scripts from ImageMagick to GraphicsMagick without any code changes.

There are three methods to install graphicsmagick-imagemagick-compat on Ubuntu 18.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 graphicsmagick-imagemagick-compat Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install graphicsmagick-imagemagick-compat

Install graphicsmagick-imagemagick-compat Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install graphicsmagick-imagemagick-compat using apt by running the following command:

sudo apt -y install graphicsmagick-imagemagick-compat

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

sudo aptitude -y install graphicsmagick-imagemagick-compat

How To Uninstall graphicsmagick-imagemagick-compat on Ubuntu 18.04

To uninstall only the graphicsmagick-imagemagick-compat package we can use the following command:

sudo apt-get remove graphicsmagick-imagemagick-compat

Uninstall graphicsmagick-imagemagick-compat And Its Dependencies

To uninstall graphicsmagick-imagemagick-compat and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove graphicsmagick-imagemagick-compat

Remove graphicsmagick-imagemagick-compat Configurations and Data

To remove graphicsmagick-imagemagick-compat configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge graphicsmagick-imagemagick-compat

Remove graphicsmagick-imagemagick-compat configuration, data, and all of its dependencies

We can use the following command to remove graphicsmagick-imagemagick-compat configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge graphicsmagick-imagemagick-compat

References

Summary

In this tutorial we learn how to install graphicsmagick-imagemagick-compat package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.