bd_pgsql_purge command not found

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

Introduction

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

bd_pgsql_purge: command not found

or when using sudo you get the following error message

sudo: bd_pgsql_purge: command not found

Solutions to bd_pgsql_purge: command not found

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

In Ubuntu bd_pgsql_purge is provided by bandwidthd-pgsql package.

bandwidthd-pgsql is:

BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs. Color Codes HTTP, TCP,UDP, ICMP, VPN, P2P, etc.

This is the PostgreSQL version of bandwidthd which supports multiple sensors and uses a dynamic (php-based) web interface. If you don’t need these features then using the package bandwidthd is suggested.

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

sudo apt-get -y install bandwidthd-pgsql

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

You can also use apt command to install bandwidthd-pgsql.

sudo apt -y install bandwidthd-pgsql

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

sudo aptitude install bandwidthd-pgsql

Summary

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