How to Uninstall and Install pgformatter Ubuntu 22.04

Updated: September 11, 2022

This SQL formatter/beautifier supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL specifics keywords. May works with any other databases too. In this guide, I will show you how to install pgformatter on Ubuntu 22.04.

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 pgformatter on Ubuntu 22.04

Install pgformatter Ubuntu 22.04

pgformatter 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 that you think is easy and you can follow.

Install pgformatter using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to get pgformatter on your Ubuntu 22.04.

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

sudo apt-get update

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

sudo apt install pgformatter

Install pgformatter using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

After installing, you can now install pgformatter, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install pgformatter Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install pgformatter

Uninstall pgformatter 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.

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

sudo apt remove --auto-remove pgformatter

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

sudo apt autoremove --purge pgformatter

Summary

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