postgresql_autodoc command not found

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

Introduction

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

postgresql_autodoc: command not found

or when using sudo you get the following error message

sudo: postgresql_autodoc: command not found

Solutions to postgresql_autodoc: command not found

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

In Ubuntu postgresql_autodoc is provided by postgresql-autodoc package.

postgresql-autodoc is:

This is a utility which will run through PostgreSQL tables and returns HTML, DOT, and 2 styles of XML which describes the database.

The HTML is human readable (via webbrowser). The first style of XML is actually the fileformat of Dia, a UML diagram tool. The second type of XML is similar to the HTML but in the Docbook 4 format. It enables you to mix in other DocBook documentation via the XREFs, generating PDFs, HTML, RTF, or other formatted documents. Between these tools and JavaDoc with the appropriate XREFs, documentation about a project can be generated quickly and be easily updatable yet have a very professional look with some DSSSL work.

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

sudo apt-get -y install postgresql-autodoc

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

You can also use apt command to install postgresql-autodoc.

sudo apt -y install postgresql-autodoc

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

sudo aptitude install postgresql-autodoc

Summary

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