How To Install postgresql-autodoc on Ubuntu 18.04
Introduction
In this tutorial we learn how to install postgresql-autodoc
on Ubuntu 18.04.
What is postgresql-autodoc
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.
There are three methods to install postgresql-autodoc
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install postgresql-autodoc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install postgresql-autodoc
using apt-get
by running the following command:
sudo apt-get -y install postgresql-autodoc
Install postgresql-autodoc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install postgresql-autodoc
using apt
by running the following command:
sudo apt -y install postgresql-autodoc
Install postgresql-autodoc Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install postgresql-autodoc
using aptitude
by running the following command:
sudo aptitude -y install postgresql-autodoc
How To Uninstall postgresql-autodoc on Ubuntu 18.04
To uninstall only the postgresql-autodoc
package we can use the following command:
sudo apt-get remove postgresql-autodoc
Uninstall postgresql-autodoc And Its Dependencies
To uninstall postgresql-autodoc
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove postgresql-autodoc
Remove postgresql-autodoc Configurations and Data
To remove postgresql-autodoc
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge postgresql-autodoc
Remove postgresql-autodoc configuration, data, and all of its dependencies
We can use the following command to remove postgresql-autodoc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge postgresql-autodoc
References
Summary
In this tutorial we learn how to install postgresql-autodoc
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.