How to Install and Uninstall postgresql Package on Debian 12 (Bookworm)

Last updated: April 29,2024

1. Install "postgresql" package

Please follow the guidance below to install postgresql on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install postgresql

2. Uninstall "postgresql" package

This is a short guide on how to uninstall postgresql on Debian 12 (Bookworm):

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

3. Information about the postgresql package on Debian 12 (Bookworm)

Package: postgresql
Source: postgresql-common (248)
Version: 15+248
Installed-Size: 15
Maintainer: Debian PostgreSQL Maintainers
Architecture: all
Depends: postgresql-15
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_15+248_all.deb
Size: 10104
MD5sum: 27f5326fbcf4d2a3cb8e2f57dda29b5d
SHA256: 9a2f2c65ac1cb11baa75c5d266de2fc6faa744e5769653d744e60ad4890a4681