How to Install and Uninstall postgresql Package on Debian 11 (Bullseye)

Last updated: April 29,2024

1. Install "postgresql" package

Please follow the guidance below to install postgresql on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install postgresql

2. Uninstall "postgresql" package

This guide covers the steps necessary to uninstall postgresql on Debian 11 (Bullseye):

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

3. Information about the postgresql package on Debian 11 (Bullseye)

Package: postgresql
Source: postgresql-common (225)
Version: 13+225
Installed-Size: 68
Maintainer: Debian PostgreSQL Maintainers
Architecture: all
Depends: postgresql-13
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_13+225_all.deb
Size: 64748
MD5sum: 747adba5b85db322dd4b73f0fbdc7b9a
SHA256: c8791bd0fd7cce76341cbd2c6ba98991a206441fe948534394239e95d102b4b8