How to Install and Uninstall pngcheck on Ubuntu 22.04

Updated: August 28, 2022

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). In this guide, I will show you ways to install pngcheck Ubuntu 22.04.

Requirements to install

  • Operating system: pngcheck needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install pngcheck on Ubuntu 22.04

Install pngcheck Ubuntu 22.04

pngcheck is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install pngcheck using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to get pngcheck on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install pngcheck Ubuntu by executing this command in the terminal.

sudo apt-get install pngcheck

Install pngcheck using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt -y install aptitude

After installing it, you can now install pngcheck by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install pngcheck Ubuntu by executing this command in the terminal.

sudo aptitude install pngcheck

Uninstall pngcheck on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a pngcheck, can be easily uninstalled by anyone.

This command can be used to uninstall pngcheck from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove pngcheck

To uninstall pngcheck and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge pngcheck

Ending

In this tutorial, I showed you ways to install pngcheck on Ubuntu 22.04 and ways to uninstall pngcheck too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.