Ubuntu 22.04 - Install PostgreSQL
Similar Posts
Native Package - PostgreSQL 14
Server
If you wish to set up a PostgreSQL 14 database server:
Client Only
If you just wish to install a client to connect to other PostgreSQL servers:
PostgreSQL Repository
If you want to install the very latest version of PostgreSQL then you will need to add their repository which can be done with the script below:
... then you can install whichever version you want, including version 15.
... or if you just need the client:
Check Version
If you want to check what version of PostgreSQL you are now running, use the following command:
Configure It
After having installed PostgreSQL, you probably want to spend a bit of time configuring it (passwords etc).
References
- PostgreSQL Docs - Linux downloads (Ubuntu)
- Stack Overflow - Which version of PostgreSQL am I running?
First published: 17th July 2023