How to Install and Uninstall postgresql Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: March 29,2024

1. Install "postgresql" package

Here is a brief guide to show you how to install postgresql on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install postgresql

2. Uninstall "postgresql" package

Learn how to uninstall postgresql on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the postgresql package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: postgresql
Architecture: all
Version: 14+238
Priority: optional
Section: database
Source: postgresql-common (238)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PostgreSQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 70
Depends: postgresql-14
Suggests: postgresql-doc
Filename: pool/main/p/postgresql-common/postgresql_14+238_all.deb
Size: 3288
MD5sum: 1ebc8cd436b05b3e5d8b06cac4a53c44
SHA1: ac70c9474610f8622798ff2c2ff048883ee27fe6
SHA256: 50e56cfd2aaebf824a4ba9e382fdad5cd5fdf9ee3e51476b6590c58b17b8ba72
SHA512: ce2f5780b1745400d68c823a960a10d399d891856701ef6139630897e4bf907922c0be78b8e8c7fd4160b00e07ac8fa0749c1a2a54301e1a87a7c3f206d8660e
Description: object-relational SQL database (supported version)
Description-md5: bdff2d6e5b2a1dd00e72b3ed8729d9ac
Task: postgresql-server