The Red Hat family of distributions includes:
and others.
PostgreSQL is available on these platforms by default. However,each version of the platform normally "snapshots" a specific version ofPostgreSQL that is then supported throughout the lifetime of this platform.Since this can often mean a different version than preferred, the PostgreSQLproject provides arepository of packages of allsupported versions for the most common distributions.
ThePostgreSQL Yum Repository will integratewith your normal systems and patch management, and provide automaticupdates for all supported versions of PostgreSQL throughout the supportlifetime of PostgreSQL.
The PostgreSQL Yum Repository currently supports:
*Note: due to the shorter support cycleon Fedora, all supported versions of PostgreSQL are not available on this platform. We do not recommendusing Fedora for server deployments.
To use the PostgreSQL Yum Repository, follow these steps:
These distributions all include PostgreSQL by default. To installPostgreSQL from these repositories, use thednf command on RHEL and Fedora:
dnf install postgresql-server
Which version of PostgreSQL you get will depend on the version ofthe distribution:
Distribution | Version |
---|---|
RHEL / AlmaLinux 10 | 16 |
RHEL / Rocky Linux / AlmaLinux 9 | 16, 15 and 13 (via modules) |
RHEL / Rocky Linux / AlmaLinux / OL 8 | 15, 13, 12, 10 and 9.6 via modules |
Fedora 42 | 16 |
Fedora 41 | 16 |
Other Red Hat family distributions may ship a different version ofPostgreSQL by default, check with your distribution vendor to be sure.
The repository contains many different packages including third partyaddons. The most common and important packages are (substitute theversion 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 |
Due to policies for Red Hat family distributions, the PostgreSQL installationwill not be enabled for automatic start or have the database initializedautomatically. To make your database installation complete, you need toperform the following steps, based on your distribution:
postgresql-setup --initdb systemctl enable postgresql.service systemctl start postgresql.service
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 fordirect downloadand manual installation as well.