pgbadger command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pgbadger: command not found
or when using sudo you get the following error message
sudo: pgbadger: command not found
Solutions to pgbadger: command not found
How To Fix pgbadger: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pgbadger is provided by pgbadger package.
pgbadger is:
pgBadger is a PostgreSQL log analyzer built for speed with fully detailed reports from your PostgreSQL log file. It’s a single and small Perl script that outperforms any other PostgreSQL log analyzer. It is written in pure Perl and uses a JavaScript library to draw graphs that are zoomable and can be saved as PNG images.
pgBadger is able to autodetect the log file format (syslog, stderr or csvlog). It is designed to parse huge log files as well as compressed files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pgbadger
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pgbadger.
sudo apt -y install pgbadger
Or if you have aptitude installed you can use the following command.
sudo aptitude install pgbadger
Summary
In this tutorial we learn how to fix pgbadger command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.