How To Install postgresql-doc-12 on Ubuntu 20.04

In this tutorial we learn how to install postgresql-doc-12 on Ubuntu 20.04. postgresql-doc-12 is documentation for the PostgreSQL database management system documentation for the PostgreSQL database management system

Introduction

In this tutorial we learn how to install postgresql-doc-12 on Ubuntu 20.04.

What is postgresql-doc-12

postgresql-doc-12 is:

This package contains all README files, user manual, and examples for PostgreSQL 12. The manual is in HTML format.

PostgreSQL is an object-relational SQL database management system. Task: postgresql-server

Package: postgresql-doc-12 Architecture: all Version: 12.2-4 Multi-Arch: foreign Priority: optional Section: doc Source: postgresql-12 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian PostgreSQL Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 14205 Breaks: postgresql-common (« 158~) Filename: pool/main/p/postgresql-12/postgresql-doc-12_12.2-4_all.deb Size: 1833068 MD5sum: fc4896b1499b9e9b54400a1486f59729 SHA1: 0f84328261be2164b041901efc64fef9fdca81b8 SHA256: 414fd91bd2d5feacb4abe7112db84a654148f73452bfdbb315f35dcff88f8351 Homepage: http://www.postgresql.org/ Description-en: documentation for the PostgreSQL database management system This package contains all README files, user manual, and examples for PostgreSQL 12. The manual is in HTML format.

PostgreSQL is an object-relational SQL database management system. Task: postgresql-server

There are three methods to install postgresql-doc-12 on Ubuntu 20.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-doc-12 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-doc-12 using apt-get by running the following command:

sudo apt-get -y install postgresql-doc-12

Install postgresql-doc-12 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install postgresql-doc-12 using apt by running the following command:

sudo apt -y install postgresql-doc-12

Install postgresql-doc-12 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-doc-12 using aptitude by running the following command:

sudo aptitude -y install postgresql-doc-12

How To Uninstall postgresql-doc-12 on Ubuntu 20.04

To uninstall only the postgresql-doc-12 package we can use the following command:

sudo apt-get remove postgresql-doc-12

Uninstall postgresql-doc-12 And Its Dependencies

To uninstall postgresql-doc-12 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove postgresql-doc-12

Remove postgresql-doc-12 Configurations and Data

To remove postgresql-doc-12 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge postgresql-doc-12

Remove postgresql-doc-12 configuration, data, and all of its dependencies

We can use the following command to remove postgresql-doc-12 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge postgresql-doc-12

References

Summary

In this tutorial we learn how to install postgresql-doc-12 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.