How To Install liblcms2-2 on Debian 11

In this tutorial we learn how to install liblcms2-2 on Debian 11. liblcms2-2 is Little CMS 2 color management library

Introduction

In this tutorial we learn how to install liblcms2-2 on Debian 11.

What is liblcms2-2

liblcms2-2 is:

LittleCMS 2 intends to be a small-footprint color management engine, with special focus on accuracy and performance. It uses the International Color Consortium standard (ICC) of color management. LittleCMS 2 is a full implementation of ICC specification 4.2 plus all addendums. It fully supports all V2 and V4 profiles, including abstract, devicelink and named color profiles.

This package contains the shared library of liblcms2.

There are three methods to install liblcms2-2 on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install liblcms2-2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install liblcms2-2

Install liblcms2-2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblcms2-2

Install liblcms2-2 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install liblcms2-2

How To Uninstall liblcms2-2 on Debian 11

To uninstall only the liblcms2-2 package we can use the following command:

sudo apt-get remove liblcms2-2

Uninstall liblcms2-2 And Its Dependencies

To uninstall liblcms2-2 and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove liblcms2-2

Remove liblcms2-2 Configurations and Data

To remove liblcms2-2 configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge liblcms2-2

Remove liblcms2-2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblcms2-2

Dependencies

liblcms2-2 have the following dependencies:

References

Summary

In this tutorial we learn how to install liblcms2-2 package on Debian 11 using different package management tools: apt, apt-get and aptitude.