How To Install pngcheck on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 441 words
Introduction
In this tutorial we learn how to install pngcheck on Ubuntu.
What is pngcheck
pngcheck is:
pngcheck verifies the integrity of PNG, JNG and MNG files (by checking the internal 32-bit CRCs or checksums) and optionally dumps almost all of the chunk-level information in the image in human-readable form. For example, it can be used to print the basic stats about an image (dimensions, bit depth, etc.); to list the color and transparency info in its palette; or to extract the embedded text annotations. All PNG and JNG chunks are supported, plus almost all MNG chunks (everything but PAST, DISC, tERm, DROP, DBYK, and ORDR). This is a command-line program with batch capabilities (e.g., pngcheck *.png).
Also includes pngsplit which can split a PNG, MNG or JNG file into individual, numbered chunks.
There are three methods to install pngcheck on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install pngcheck Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install pngcheck using apt-get by running the following command:
sudo apt-get -y install pngcheck
Install pngcheck Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install pngcheck using apt by running the following command:
sudo apt -y install pngcheck
Install pngcheck 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install pngcheck using aptitude by running the following command:
sudo aptitude -y install pngcheck
How To Uninstall pngcheck on Ubuntu
To uninstall only the pngcheck package we can use the following command:
sudo apt-get remove pngcheck
Uninstall pngcheck And Its Dependencies
To uninstall pngcheck and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove pngcheck
Remove pngcheck Configurations and Data
To remove pngcheck configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge pngcheck
Remove pngcheck configuration, data, and all of its dependencies
We can use the following command to remove pngcheck configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pngcheck
Dependencies
pngcheck have the following dependencies:
References
Summary
In this tutorial we learn how to install pngcheck package on Ubuntu using different package management tools: apt, apt-get and aptitude.