How To Install libspng0 on Debian 12

Learn how to install libspng0 on Debian 12 with this tutorial. libspng0 is simple, modern libpng alternative

Introduction

In this tutorial we learn how to install libspng0 on Debian 12.

What is libspng0

libspng0 is:

libspng is a C library for reading and writing Portable Network Graphics (PNG) format files with a focus on security and ease of use.

The simple API allows decoding a PNG file in just a few function calls, and no raw pointers or callback functions are involved.

Following good security practises, code is written according to the rules of the CERT C Coding Standard. All integer arithmetic is checked for overflow and all error conditions are handled gracefully. The library is also continuously fuzzed, scanned by static analyzers and features over 1000 test cases.

There are three methods to install libspng0 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 libspng0 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libspng0

Install libspng0 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libspng0

Install libspng0 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 libspng0 using aptitude by running the following command:

sudo aptitude -y install libspng0

How To Uninstall libspng0 on Debian 12

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

sudo apt-get remove libspng0

Uninstall libspng0 And Its Dependencies

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

sudo apt-get -y autoremove libspng0

Remove libspng0 Configurations and Data

To remove libspng0 configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libspng0

Remove libspng0 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libspng0

Dependencies

libspng0 have the following dependencies:

References

Summary

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