How To Install libmagickcore-6.q16-dev on Ubuntu 18.04

In this tutorial we learn how to install libmagickcore-6.q16-dev on Ubuntu 18.04. libmagickcore-6.q16-dev is low-level image manipulation library - development files (Q16)

Introduction

In this tutorial we learn how to install libmagickcore-6.q16-dev on Ubuntu 18.04.

What is libmagickcore-6.q16-dev

libmagickcore-6.q16-dev is:

The MagickCore API is a low-level interface between the C programming language and the ImageMagick image processing libraries and is recommended for wizard-level programmers only. Unlike the MagickWand C API which uses only a few opaque types and accessors, with MagickCore you almost exclusively access the structure members directly.

This package includes header static libraries needed to compile programs using MagickCore.

This version of libmagickcore-dev is compiled for a channel depth of 16 bits (Q16).

There are three methods to install libmagickcore-6.q16-dev 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 libmagickcore-6.q16-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libmagickcore-6.q16-dev using apt-get by running the following command:

sudo apt-get -y install libmagickcore-6.q16-dev

Install libmagickcore-6.q16-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmagickcore-6.q16-dev using apt by running the following command:

sudo apt -y install libmagickcore-6.q16-dev

Install libmagickcore-6.q16-dev 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 libmagickcore-6.q16-dev using aptitude by running the following command:

sudo aptitude -y install libmagickcore-6.q16-dev

How To Uninstall libmagickcore-6.q16-dev on Ubuntu 18.04

To uninstall only the libmagickcore-6.q16-dev package we can use the following command:

sudo apt-get remove libmagickcore-6.q16-dev

Uninstall libmagickcore-6.q16-dev And Its Dependencies

To uninstall libmagickcore-6.q16-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libmagickcore-6.q16-dev

Remove libmagickcore-6.q16-dev Configurations and Data

To remove libmagickcore-6.q16-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmagickcore-6.q16-dev

Remove libmagickcore-6.q16-dev configuration, data, and all of its dependencies

We can use the following command to remove libmagickcore-6.q16-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmagickcore-6.q16-dev

References

Summary

In this tutorial we learn how to install libmagickcore-6.q16-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.