How To Install graphicsmagick on Kali Linux

In this tutorial we learn how to install graphicsmagick on Kali Linux. graphicsmagick is collection of image processing tools

Introduction

In this tutorial we learn how to install graphicsmagick on Kali Linux.

What is graphicsmagick

graphicsmagick 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.

The tools support a large variety of image formats from the widely used jpeg, tiff, bmp or xpm to special-purpose formats such as fits or image formats found on some photo CDs. They can convert between formats, concatenate several images into one, annotate and distort them, create thumbnails or manipulate the colormap. While all features are available from the command-line, the package also includes an image viewer that allows interactive manipulation.

Note that unlike ImageMagick, the GraphicsMagick tools are accessed through a single executable called ‘gm’. Therefore, GraphicsMagick and ImageMagick can be used in parallel. Install package graphicsmagick-imagemagick-compat to obtain a set of several executables that is compatible to ImageMagick’s interface.

There are three methods to install graphicsmagick on Kali Linux. 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 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 using apt-get by running the following command:

sudo apt-get -y install graphicsmagick

Install graphicsmagick Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install graphicsmagick

Install graphicsmagick Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install graphicsmagick

How To Uninstall graphicsmagick on Kali Linux

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

sudo apt-get remove graphicsmagick

Uninstall graphicsmagick And Its Dependencies

To uninstall graphicsmagick and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove graphicsmagick

Remove graphicsmagick Configurations and Data

To remove graphicsmagick configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge graphicsmagick

Remove graphicsmagick configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge graphicsmagick

Dependencies

graphicsmagick have the following dependencies:

References

Summary

In this tutorial we learn how to install graphicsmagick package on Kali Linux using different package management tools: apt, apt-get and aptitude.