How To Install libmagick++-6.q16-7 on Ubuntu 18.04

In this tutorial we learn how to install libmagick++-6.q16-7 on Ubuntu 18.04. libmagick++-6.q16-7 is C++ interface to ImageMagick – quantum depth Q16

Introduction

In this tutorial we learn how to install libmagick++-6.q16-7 on Ubuntu 18.04.

What is libmagick++-6.q16-7

libmagick++-6.q16-7 is:

The Magick++ library is a set of C++ wrapper classes that provides access to the ImageMagick package functionality from within a C++ application.

This package contains the C++ libraries needed to run executables that make use of libMagick++.

This version of libmagick++ is compiled for a channel depth of 16 bits (Q16).

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

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

sudo apt-get update

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

sudo apt-get -y install libmagick++-6.q16-7

Install libmagick++-6.q16-7 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmagick++-6.q16-7 using apt by running the following command:

sudo apt -y install libmagick++-6.q16-7

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

sudo aptitude -y install libmagick++-6.q16-7

How To Uninstall libmagick++-6.q16-7 on Ubuntu 18.04

To uninstall only the libmagick++-6.q16-7 package we can use the following command:

sudo apt-get remove libmagick++-6.q16-7

Uninstall libmagick++-6.q16-7 And Its Dependencies

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

sudo apt-get -y autoremove libmagick++-6.q16-7

Remove libmagick++-6.q16-7 Configurations and Data

To remove libmagick++-6.q16-7 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmagick++-6.q16-7

Remove libmagick++-6.q16-7 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmagick++-6.q16-7

References

Summary

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