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

Last updated: December 29,2024

1. Install "postgresql-9.5" package

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

$ sudo apt update $ sudo apt install postgresql-9.5

2. Uninstall "postgresql-9.5" package

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

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

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

Package: postgresql-9.5
Architecture: amd64
Version: 9.5.25-0ubuntu0.16.04.1
Priority: optional
Section: database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11988
Depends: libc6 (>= 2.16), libgssapi-krb5-2 (>= 1.8+dfsg), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1), libpq5 (>= 9.2~beta3), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.7.4), postgresql-client-9.5, postgresql-common (>= 142~), tzdata, ssl-cert, locales
Recommends: postgresql-contrib-9.5, sysstat
Suggests: locales-all
Filename: pool/main/p/postgresql-9.5/postgresql-9.5_9.5.25-0ubuntu0.16.04.1_amd64.deb
Size: 3018404
MD5sum: cd27b66660e5d31d4d98e48319d715ab
SHA1: d7dbde6888da83c31bbf30db4cef91512e3554ac
SHA256: 2806bdeecba2ea085b89329872e4d00c372297ee4631c4d2b151d84df9581125
SHA512: 5d7f6d0d776acf35711685374431f3fcded96ee3bd8ac372728b6ba47c106e568242cc1ae4eeec956fd19a5d05dfe16309fb1f47254703d340448fc3a94bb1dd
Homepage: http://www.postgresql.org/
Description-en: object-relational SQL database, version 9.5 server
PostgreSQL is a powerful, open source object-relational database
system. It is fully ACID compliant, has full support for foreign
keys, joins, views, triggers, and stored procedures (in multiple
languages). It includes most SQL:2008 data types, including INTEGER,
NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It
also supports storage of binary large objects, including pictures,
sounds, or video. It has native programming interfaces for C/C++,
Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and
exceptional documentation.
.
This package provides the database server for PostgreSQL 9.5.
Description-md5: b7a31889f0611d6fbd9f078cdf285bc3
Task: postgresql-server
Supported: 5y

Package: postgresql-9.5
Architecture: amd64
Version: 9.5.24-0ubuntu0.16.04.1
Priority: optional
Section: database
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11984
Depends: libc6 (>= 2.16), libgssapi-krb5-2 (>= 1.8+dfsg), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1), libpq5 (>= 9.2~beta3), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.7.4), postgresql-client-9.5, postgresql-common (>= 142~), tzdata, ssl-cert, locales
Recommends: postgresql-contrib-9.5, sysstat
Suggests: locales-all
Filename: pool/main/p/postgresql-9.5/postgresql-9.5_9.5.24-0ubuntu0.16.04.1_amd64.deb
Size: 3026546
MD5sum: b012018bd9859b10ba4467b6ca3a7c90
SHA1: 3902405a5cb9441c26d74befdaf99c47aedf5061
SHA256: ab3a537461d1cf393ce3a9cc2e54963ceb10e6b6e4b01f6659de8b6e022f9431
SHA512: bc29706e96b54baebe811a56dab05994a13bacbc61684e66d67e5dc1f302ec5378ae19c053c0388facd12b4084c87fe9129998385635bb99df7a3a93cf13d739
Homepage: http://www.postgresql.org/
Description-en: object-relational SQL database, version 9.5 server
PostgreSQL is a powerful, open source object-relational database
system. It is fully ACID compliant, has full support for foreign
keys, joins, views, triggers, and stored procedures (in multiple
languages). It includes most SQL:2008 data types, including INTEGER,
NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It
also supports storage of binary large objects, including pictures,
sounds, or video. It has native programming interfaces for C/C++,
Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and
exceptional documentation.
.
This package provides the database server for PostgreSQL 9.5.
Description-md5: b7a31889f0611d6fbd9f078cdf285bc3
Task: postgresql-server
Supported: 5y

Package: postgresql-9.5
Priority: optional
Section: database
Installed-Size: 11924
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Architecture: amd64
Version: 9.5.2-1
Depends: libc6 (>= 2.16), libgssapi-krb5-2 (>= 1.8+dfsg), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1), libpq5 (>= 9.2~beta3), libssl1.0.0 (>= 1.0.0), libxml2 (>= 2.7.4), postgresql-client-9.5, postgresql-common (>= 142~), tzdata, ssl-cert, locales
Recommends: postgresql-contrib-9.5, sysstat
Suggests: locales-all
Filename: pool/main/p/postgresql-9.5/postgresql-9.5_9.5.2-1_amd64.deb
Size: 2999532
MD5sum: 6afebf3175c50c2c3c04f05a0f17198d
SHA1: 9763fe3761cfaeb7e8320accac8374c1edc214a4
SHA256: 93b5c1f19a827a1a295ba3bd136cb94688e556203048e949e59944c31d49ec29
Description-en: object-relational SQL database, version 9.5 server
PostgreSQL is a powerful, open source object-relational database
system. It is fully ACID compliant, has full support for foreign
keys, joins, views, triggers, and stored procedures (in multiple
languages). It includes most SQL:2008 data types, including INTEGER,
NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It
also supports storage of binary large objects, including pictures,
sounds, or video. It has native programming interfaces for C/C++,
Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and
exceptional documentation.
.
This package provides the database server for PostgreSQL 9.5.
Description-md5: b7a31889f0611d6fbd9f078cdf285bc3
Homepage: http://www.postgresql.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: postgresql-server