How to Install and Uninstall postgresql Package on Debian 10 (Buster)

Last updated: April 29,2024

1. Install "postgresql" package

This tutorial shows how to install postgresql on Debian 10 (Buster)

$ sudo apt update $ sudo apt install postgresql

2. Uninstall "postgresql" package

This guide covers the steps necessary to uninstall postgresql on Debian 10 (Buster):

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

3. Information about the postgresql package on Debian 10 (Buster)

Package: postgresql
Source: postgresql-common (200+deb10u4)
Version: 11+200+deb10u4
Installed-Size: 65
Maintainer: Debian PostgreSQL Maintainers
Architecture: all
Depends: postgresql-11
Suggests: postgresql-doc
Description: object-relational SQL database (supported version)
Description-md5: bdff2d6e5b2a1dd00e72b3ed8729d9ac
Tag: devel::lang:sql, interface::daemon, network::server, network::service,
role::metapackage, role::program, suite::postgresql, works-with::db
Section: database
Priority: optional
Filename: pool/main/p/postgresql-common/postgresql_11+200+deb10u4_all.deb
Size: 61072
MD5sum: a39797f70fd1eca1babcea65df3adce7
SHA256: ef6c2fffdc7f2044cd7f14bd815b8b7b68c11e83fb222202c24ffb07e1d6713e

Package: postgresql
Source: postgresql-common (200+deb10u3)
Version: 11+200+deb10u3
Installed-Size: 64
Maintainer: Debian PostgreSQL Maintainers
Architecture: all
Depends: postgresql-11
Suggests: postgresql-doc
Description: object-relational SQL database (supported version)
Description-md5: bdff2d6e5b2a1dd00e72b3ed8729d9ac
Section: database
Priority: optional
Filename: pool/updates/main/p/postgresql-common/postgresql_11+200+deb10u3_all.deb
Size: 60852
MD5sum: aef4332fca68c95b42313d52a65a5c17
SHA256: e02c6718ff8f4bad21858fb7934f3115433cdd3bdb46c1d3216f230af4448e8d