Install PostgreSQL for Linux


Overview

You can install an official PostgreSQL installation:

  • either direct on your Linux server
  • or via a Docker image.

See the installation instructions below.

Supported PostgreSQL releases

See What are the database requirements?

Installation

Direct install on Linux server

Your chosen Linux distribution may include a specific release of PostgreSQL by default but that may not be the latest available release nor one that is supported by CAST (see What are the database requirements?). CAST recommends PostgreSQL 18.x. You can use the official PostgreSQL repository for your distribution’s package manager system to install the specific release you need:

Distribution Instructions
Ubuntu via APT https://www.postgresql.org/download/linux/ubuntu/external link
Debian via APT https://www.postgresql.org/download/linux/debian/external link
Red Hat (RHEL/Rocky/Alma/CentOS) via Yum or DNF https://www.postgresql.org/download/linux/redhat/external link

Install via a Docker image

See https://hub.docker.com/_/postgresexternal link for more information about how to install an official PostgreSQL image on Docker.

What next?

See Post installation information and action items.