How To Install libspng-doc on Debian 12

Learn how to install libspng-doc on Debian 12 with this tutorial. libspng-doc is simple, modern libpng alternative - documentation

Introduction

In this tutorial we learn how to install libspng-doc on Debian 12.

What is libspng-doc

libspng-doc 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.

This package contains the documentation.

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

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

sudo apt-get update

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

sudo apt-get -y install libspng-doc

Install libspng-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libspng-doc

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

sudo aptitude -y install libspng-doc

How To Uninstall libspng-doc on Debian 12

To uninstall only the libspng-doc package we can use the following command:

sudo apt-get remove libspng-doc

Uninstall libspng-doc And Its Dependencies

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

sudo apt-get -y autoremove libspng-doc

Remove libspng-doc Configurations and Data

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

sudo apt-get -y purge libspng-doc

Remove libspng-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libspng-doc

Dependencies

libspng-doc have the following dependencies:

References

Summary

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