pgagent command not found

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

Introduction

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

pgagent: command not found

or when using sudo you get the following error message

sudo: pgagent: command not found

Solutions to pgagent: command not found

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

In Ubuntu pgagent is provided by pgagent package.

pgagent is:

pgAgent is a job scheduling agent for PostgreSQL, capable of running multi-step batch/shell and SQL tasks on complex schedules.

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

sudo apt-get -y install pgagent

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

You can also use apt command to install pgagent.

sudo apt -y install pgagent

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

sudo aptitude install pgagent

Summary

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