How To Install postgresql-all on Ubuntu 20.04

In this tutorial we learn how to install postgresql-all on Ubuntu 20.04. postgresql-all is metapackage depending on all PostgreSQL server packages metapackage depending on all PostgreSQL server packages

Introduction

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

What is postgresql-all

postgresql-all is:

This metapackage depends on all PostgreSQL server packages, in all supported versions (excluding documentation and debug symbols). It exists to facilitate depending on the server packages in test environments.

PostgreSQL is a fully featured object-relational database management system. It supports a large part of the SQL standard and is designed to be extensible by users in many aspects. Some of the features are: ACID transactions, foreign keys, views, sequences, subqueries, triggers, user-defined types and functions, outer joins, multiversion concurrency control. Graphical user interfaces and bindings for many programming languages are available as well.

Package: postgresql-all Architecture: all Version: 12+214 Priority: optional Section: universe/database Source: postgresql-common (214) Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian PostgreSQL Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 66 Depends: libecpg-dev, libpq-dev, postgresql-server-dev-all, postgresql-contrib-12, postgresql-plperl-12, postgresql-plpython3-12, postgresql-pltcl-12 Filename: pool/universe/p/postgresql-common/postgresql-all_12+214_all.deb Size: 1924 MD5sum: 2d14aca7ca941c9b31d7db15901a28ae SHA1: 406f749f2d6c3eb9adb92fae047c63bb4246458d SHA256: a21715f740ddd682956d0d451ac9774baebe77aefa1bba2595a3f6dade0a73e1 Description-en: metapackage depending on all PostgreSQL server packages This metapackage depends on all PostgreSQL server packages, in all supported versions (excluding documentation and debug symbols). It exists to facilitate depending on the server packages in test environments.

PostgreSQL is a fully featured object-relational database management system. It supports a large part of the SQL standard and is designed to be extensible by users in many aspects. Some of the features are: ACID transactions, foreign keys, views, sequences, subqueries, triggers, user-defined types and functions, outer joins, multiversion concurrency control. Graphical user interfaces and bindings for many programming languages are available as well.

There are three methods to install postgresql-all 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-all 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-all using apt-get by running the following command:

sudo apt-get -y install postgresql-all

Install postgresql-all Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install postgresql-all

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

sudo aptitude -y install postgresql-all

How To Uninstall postgresql-all on Ubuntu 20.04

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

sudo apt-get remove postgresql-all

Uninstall postgresql-all And Its Dependencies

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

sudo apt-get -y autoremove postgresql-all

Remove postgresql-all Configurations and Data

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

sudo apt-get -y purge postgresql-all

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

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

sudo apt-get -y autoremove --purge postgresql-all

References

Summary

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