Pngcrush is an optimizer for PNG (Portable Network Graphics) files. Its main purpose is to reduce the size of the PNG IDAT data stream by trying various compression levels and PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, and textual chunks. I will show you how to install pngcrush on Ubuntu 22.04 in this tutorial.
Requirements to install
- Operating system: pngcrush needs Ubuntu 22.04 to work
- Privileges: Check that you can run sudo commands.
Install pngcrush Ubuntu 22.04
pngcrush 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 pngcrush using APT
This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install pngcrush on your Ubuntu.
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:
Step 2: Install the package on Ubuntu 22.04. After updating, you can install pngcrush Ubuntu by executing this command in the terminal.
Install pngcrush 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. You must run this command to install it if you haven’t already done so on Ubuntu.
Then, you can now install pngcrush, just following these steps:
Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:
Step 2: Install the package on Ubuntu 22.04. After updating, you can install pngcrush Ubuntu by pasting this command into the terminal and pressing
Install pngcrush using Snap
Snap is a software package and deployment system that delivers software to users as self-contained packages. Therefore, Snap enables you to install pngcrush easily. Just pasting this command into the terminal and running it.
Install pngcrush from Ubuntu Software Center
Software Center Ubuntu ought to be your next option if you are using Ubuntu 22.04. because you can install them quickly and it contains many packages, including pngcrush. Following these steps to start the installation:
Step 1: Opening the Ubuntu Software Center
Open the Applications menu using
Super, then look for
Ubuntu Software and click on it.
Step 2: Search for pngcrush
After Ubuntu Software Center appears, you need to look for
pngcrush by typing its name into the search box and choose the first one in the result lists. After that, you can install pngcrush by clicking the
Uninstall pngcrush on Ubuntu 22.04
Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.
This command can be used to uninstall pngcrush from Ubuntu 22.04 if it was installed using APT or Aptitude.
You can also execute this command if you want to uninstall pngcrush and remove its data and dependencies:
If you installed pngcrush using Snap, you could run this command:
In this guide, I showed you ways to install pngcrush on Ubuntu 22.04 and some ways to uninstall pngcrush too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.