pg_bsd_indent command not found

In this troubleshooting guide we learn how to fix pg_bsd_indent command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pg_bsd_indent: command not found

or when using sudo you get the following error message

sudo: pg_bsd_indent: command not found

Solutions to pg_bsd_indent: command not found

How To Fix pg_bsd_indent: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pg_bsd_indent is provided by pg-bsd-indent package.

pg-bsd-indent is:

pg_bsd_indent is the official way the PostgreSQL developers reformat code before release. It is also recommended to be used by developers for code changes prior to submission. It is a fork of FreeBSD’s indent.

To fix this problem, we can install more using the command below.

sudo apt-get -y install pg-bsd-indent

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install pg-bsd-indent.

sudo apt -y install pg-bsd-indent

Or if you have aptitude installed you can use the following command.

sudo aptitude install pg-bsd-indent

Summary

In this tutorial we learn how to fix pg_bsd_indent command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.