pg_cloudconfig command not found

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

Introduction

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

pg_cloudconfig: command not found

or when using sudo you get the following error message

sudo: pg_cloudconfig: command not found

Solutions to pg_cloudconfig: command not found

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

In Ubuntu pg_cloudconfig is provided by pg-cloudconfig package.

pg-cloudconfig is:

Tool to set optimized defaults for PostgreSQL in virtual environments. (changes settings without asking for confirmation). This is used to change the static defaults of PostgreSQL with potential more useful alternatives calculated based on available resources or previous settings.

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

sudo apt-get -y install pg-cloudconfig

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

You can also use apt command to install pg-cloudconfig.

sudo apt -y install pg-cloudconfig

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

sudo aptitude install pg-cloudconfig

Summary

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