How To Install libspng-dev on Debian 12
Introduction
In this tutorial we learn how to install libspng-dev
on Debian 12.
What is libspng-dev
libspng-dev 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 header and development files needed to build programs and packages using libspng.
There are three methods to install libspng-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 libspng-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 libspng-dev
using apt-get
by running the following command:
sudo apt-get -y install libspng-dev
Install libspng-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libspng-dev
using apt
by running the following command:
sudo apt -y install libspng-dev
Install libspng-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 libspng-dev
using aptitude
by running the following command:
sudo aptitude -y install libspng-dev
How To Uninstall libspng-dev on Debian 12
To uninstall only the libspng-dev
package we can use the following command:
sudo apt-get remove libspng-dev
Uninstall libspng-dev And Its Dependencies
To uninstall libspng-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libspng-dev
Remove libspng-dev Configurations and Data
To remove libspng-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libspng-dev
Remove libspng-dev configuration, data, and all of its dependencies
We can use the following command to remove libspng-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libspng-dev
Dependencies
libspng-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libspng-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.