How To Install liblodepng-dev on Debian 12

Learn how to install liblodepng-dev on Debian 12 with this tutorial. liblodepng-dev is PNG encoder and decoder in C and C++, without dependencies

Introduction

In this tutorial we learn how to install liblodepng-dev on Debian 12.

What is liblodepng-dev

liblodepng-dev is:

PNG is a file format to store raster images losslessly with good compression, supporting different color types and alpha channel.

LodePNG is a PNG codec according to the Portable Network Graphics (PNG) Specification (Second Edition) - W3C Recommendation 10 November 2003.

The specifications used are:

*) Portable Network Graphics (PNG) Specification (Second Edition): http://www.w3.org/TR/2003/REC-PNG-20031110 *) RFC 1950 ZLIB Compressed Data Format version 3.3: http://www.gzip.org/zlib/rfc-zlib.html *) RFC 1951 DEFLATE Compressed Data Format Specification ver 1.3: http://www.gzip.org/zlib/rfc-deflate.html

LodePNG works both in C (ISO C90) and C++, with a C++ wrapper that adds extra functionality.

This package conatains the development files and examples.

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

Install liblodepng-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 liblodepng-dev using apt-get by running the following command:

sudo apt-get -y install liblodepng-dev

Install liblodepng-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblodepng-dev

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

sudo aptitude update

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

sudo aptitude -y install liblodepng-dev

How To Uninstall liblodepng-dev on Debian 12

To uninstall only the liblodepng-dev package we can use the following command:

sudo apt-get remove liblodepng-dev

Uninstall liblodepng-dev And Its Dependencies

To uninstall liblodepng-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove liblodepng-dev

Remove liblodepng-dev Configurations and Data

To remove liblodepng-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge liblodepng-dev

Remove liblodepng-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge liblodepng-dev

Dependencies

liblodepng-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install liblodepng-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.