Skip site navigation (1) Skip section navigation (2)

Linux downloads (Red Hat family)

The Red Hat family of distributions includes Red Hat Enterprise Linux, CentOS, Fedora, Scientific Linux, Oracle Linux and others. PostgreSQL is available on these platforms by default. However, each version of the platform normally "snapshots" a specific version of PostgreSQL that is then supported throughout the lifetime of this platform. Since this can often mean a different version than preferred, the PostgreSQL project provides a repository of packages of all supported versions for the most common distributions.

PostgreSQL Yum Repository

If the version supplied by your operating system is not the one you want, you can use the PostgreSQL Yum Repository. This repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.

The PostgreSQL yum repository currently supports Red Hat Enterprise Linux, CentOS, Oracle Enterprise Linux and Scientific Linux versions 5.x, 6.x, and 7.x, as well as current versions of Fedora. Note that due to the shorter support cycle on Fedora, all versions are not available on this platform, and we recommend not using Fedora for server deployments.

To use the yum repository, you must first install the repository RPM. To do this, download the correct RPM from the repository RPM listing, and install it with commands like:

On RHEL and its derivatives: yum install

On Fedora, dnf install

Once this is done, you can proceed to install and update packages the same way as the ones included in the distribution.

For RHEL and its derivatives: yum install postgresql96-server postgresql96-contrib
(or yum groupinstall "PostgreSQL Database Server 9.6 PGDG")
service postgresql-9.6 initdb
chkconfig postgresql-9.6 on service postgresql-9.6 start
or, on Fedora 24 and other later derived distributions:
dnf install postgresql96-server postgresql96-contrib
(or dnf groupinstall "PostgreSQL Database Server 9.6 PGDG")
/usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service

Package names in the PostgreSQL yum repository follows the same standard as the ones included in the main repositories, but include the version number, such as:

  • postgresql96
  • postgresql96-server
  • postgresql96-contrib
  • pgadmin3_96

Included in distribution

These distributions all include PostgreSQL by default. To install PostgreSQL from these repositories, use the yum command on RHEL 5,6 and 7, or dnf command on Fedora 24+:

yum install postgresql-server

dnf install postgresql-server

Which version of PostgreSQL you get will depend on the version of the distribution:

Distribution Version
RHEL/CentOS/SL/OL 7 9.2(also supplies package rh-postgresql95 and rh-postgresql94 via SCL)
RHEL/CentOS/SL/OL 6 8.4(also supplies package postgresql92)
RHEL/CentOS/SL/OL 5 8.1 (also supplies package postgresql84)
Fedora 25 9.6
Fedora 24 9.4

Other Red Hat family distributions may ship a different version of PostgreSQL by default, check with your distribution vendor to be sure.

The repository contains many different packages including third party addons. The most common and important packages are (substitute the version number as required):

  • postgresql-client libraries and client binaries
  • postgresql-server core database server
  • postgresql-contrib additional supplied modules
  • postgresql-devel libraries and headers for C language development
  • pgadmin3 - pgAdmin III graphical administration utility


Due to policies for Red Hat family distributions, the PostgreSQL installation will not be enabled for automatic start or have the database initialized automatically. To make your database installation complete, you need to perform these two steps: service postgresql initdb
chkconfig postgresql on
or, on Fedora 24 and other later derived distributions:
postgresql-setup initdb
systemctl enable postgresql.service systemctl start postgresql.service

Direct RPM download

If you cannot, or do not want to, use the yum based installation method, all the RPMs that are in the yum repository are available for direct download and manual installation as well.

Cross distribution packages

Generic RPM and DEB packages that provide a server-only distribution are avaliable for some 32 and 64-bit Linux distributions. These packages provide a single set of binaries and consistent packaging across different Linux distributions. They are designed for server installation where a GUI is not available and consistency across multiple distributions is a requirement.

Download the packages from BigSQL for all supported versions.

Note: The cross distribution packages do not fully integrate with the platform-specific packaging systems.

Interactive installer by EnterpriseDB

Download the installer certified by EnterpriseDB for all supported PostgreSQL versions.

This installer includes the PostgreSQL server, pgAdmin; a graphical tool for managing and developing your databases, and StackBuilder; a package manager that can be used to download and install additional PostgreSQL tools and drivers. Stackbuilder includes management, integration, migration, replication, geospatial, connectors and other tools.

This installer can run in graphical, command line, or silent install modes.

The installer is designed to be a straightforward, fast way to get up and running with PostgreSQL on Linux (Red Hat family Linux including CentOS/Fedora/Scientific/Oracle variants), Debian GNU/Linux and derivatives, Ubuntu Linux and derivatives, SuSE and OpenSuSE.

Advanced users can also download a tar.gz archive of the binaries, without the installer. This download is intended for users who wish to include PostgreSQL as part of another application installer.

Note: The installers do not integrate with platform-specific packaging systems.

Build from source

The source code can be found in the main file browser. Instructions for building from source can be found in the documentation.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group