How to Install and Uninstall pngquant Ubuntu 22.04

Updated: August 28, 2022

pngquant is a command-line conversion utility to quantize and dither truecolor PNG images, especially those with a full alpha channel, down to 8-bit (or smaller) RGBA-palette PNGs. Such images are usually two to four times smaller than the full 32-bit versions, and partial transparency is preserved quite nicely. This makes pngquant especially useful both for Web sites and for PlayStation 2 development, where one of the texture formats is RGBA-palette-based (though not PNG-compressed). This is the same technique used for many of the images on the Miscellaneous Transparent PNGs page (http://www.libpng.org/pub/png/pngs-img.html), and the results are often indistinguishable from the original, truecolor PNG images. I will show you how to install pngquant on Ubuntu 22.04 in this guide.

Prerequisites to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install pngquant on Ubuntu 22.04

Install pngquant Ubuntu 22.04

pngquant is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install pngquant 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 pngquant on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install pngquant Ubuntu by executing this command in the terminal.

sudo apt -y install pngquant

Install pngquant using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After that, you can now install pngquant 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 download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo aptitude install pngquant

Install pngquant using Snap

Snap is a software package and deployment system that delivers software to users as self-contained packages. As a result, Snap enables you to install pngquant easily. Simply pasting this command into the terminal and pressing Enter to run it.

sudo snap install pngquant

Install pngquant from Ubuntu Software Center

If you are using Ubuntu 22.04, Software Center Ubuntu should be your next choice. Because it contains many packages, and you can install them very quickly. Start the installation by following these steps:

Step 1: Opening the Ubuntu Software Center

You must press the Super + A key combination. It will display the application menu, where you can view installed applications on your system. You need to search for Ubuntu Software and open it.

Step 2: Searching for pngquant in Ubuntu Software

After Ubuntu Software Center appears, you need to search for pngquant by typing its name into the search box and the results will appear. After selecting the package, you can now install pngquant by clicking the Install button.

Install pngquant from Software Center on Ubuntu 22.04

Uninstall pngquant on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just pngquant.

If you installed pngquant using APT or Aptitude, you could uninstall pngquant on Ubuntu by executing this command

sudo apt remove --auto-remove pngquant

You can also execute this command if you want to uninstall pngquant and remove its data and dependencies:

sudo apt autoremove --purge pngquant

If you used Snap to install pngquant, you could follow this step:

sudo snap remove pngquant

Summary

In this guide, I showed you ways to install pngquant on Ubuntu 22.04 and some ways to uninstall pngquant too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.