pspg command not found

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

Introduction

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

pspg: command not found

or when using sudo you get the following error message

sudo: pspg: command not found

Solutions to pspg: command not found

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

In Ubuntu pspg is provided by pspg package.

pspg is:

pspg is a pager specialized for viewing query results in PostgreSQL’s psql command line client. Headers and the first column(s) are held in place while scrolling vertically and horizontally. Various color schemes are available.

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

sudo apt-get -y install pspg

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

You can also use apt command to install pspg.

sudo apt -y install pspg

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

sudo aptitude install pspg

Summary

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