How to Install and Uninstall postgresql Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: April 29,2024

1. Install "postgresql" package

Please follow the step by step instructions below to install postgresql on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install postgresql

2. Uninstall "postgresql" package

Please follow the guidance below to uninstall postgresql on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove postgresql $ sudo apt autoclean && sudo apt autoremove

3. Information about the postgresql package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: postgresql
Architecture: all
Version: 9.5+173ubuntu0.3
Priority: optional
Section: database
Source: postgresql-common (173ubuntu0.3)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 58
Depends: postgresql-9.5
Suggests: postgresql-doc
Filename: pool/main/p/postgresql-common/postgresql_9.5+173ubuntu0.3_all.deb
Size: 5392
MD5sum: d1cb5404f30795ee218d7308701f4983
SHA1: 6082b1ddd4e3d1448a2a10184ab9ccdb2dd19829
SHA256: 9eb9cd85f33c215790f883593dd10e775b07818005a6cad553cbb1d4881870e4
SHA512: 1e90b517083bf4275eda07aed9cd59ca8cfa6d99beacb1c1d4bb6953260cb875252847bf046a43a0ee90e81841a32abd273e9d4d33d18b19d575ebd90bbc6e85
Description-en: object-relational SQL database (supported version)
This metapackage always depends on the currently supported PostgreSQL
database server version.
.
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.
Description-md5: bdff2d6e5b2a1dd00e72b3ed8729d9ac
Task: postgresql-server
Supported: 5y

Package: postgresql
Priority: optional
Section: database
Installed-Size: 58
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Architecture: all
Source: postgresql-common (173)
Version: 9.5+173
Depends: postgresql-9.5
Suggests: postgresql-doc
Filename: pool/main/p/postgresql-common/postgresql_9.5+173_all.deb
Size: 5336
MD5sum: 6fb7ba6823da1fd4dfc44718c10fe80b
SHA1: 0f04a1260bf837fc2293f2d93cc326ca71ff7f36
SHA256: 52da60af275238a25ddef841fabd4ca9516309a7b5922238ebeb7228b02f5c0f
Description-en: object-relational SQL database (supported version)
This metapackage always depends on the currently supported PostgreSQL
database server version.
.
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.
Description-md5: bdff2d6e5b2a1dd00e72b3ed8729d9ac
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: postgresql-server