Instalar Postgres Rhel
Instalar Postgres Rhel
org/download/linux/redhat/
9th February 2023: PostgreSQL 15.2, 14.7, 13.10, 12.14, and 11.19 Released !
Quick Links
◦ Downloads
◦ Packages
◦ Source
◦ Software Catalogue
◦ File Browser
and others.
PostgreSQL is available on these platforms by default. However, each version of the platform normally "snapshots" a speci�c version of
PostgreSQL that is then supported throughout the lifetime of this platform. Since this can often mean a di�erent version than preferred,
the PostgreSQL project provides a repository of packages of all supported versions for the most common distributions.
1. Select version:
13
2. Select platform:
3. Select architecture:
x86_64
4. Copy, paste and run the relevant parts of the setup script:
# Install PostgreSQL:
sudo dnf install -y postgresql13-server
1 of 3 09/03/2023, 16:17
PostgreSQL: Linux downloads (Red Hat family) https://www.postgresql.org/download/linux/redhat/
Included in Distribution
These distributions all include PostgreSQL by default. To install PostgreSQL from these repositories, use the yum command on RHEL 6 and
7:
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-postgresql10, rh-postgresql96, rh-postgresql95 and rh-postgresql94 via SCL)
Fedora 37 14
Fedora 36 14
Other Red Hat family distributions may ship a di�erent version of PostgreSQL by default, check with your distribution vendor to be sure.
The repository contains many di�erent packages including third party addons. The most common and important packages are (substitute
the version number as required):
Post-installation
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 the following steps, based on your distribution:
For RHEL / Rocky Linux / CentOS / SL / OL 7, 8, 9 Or Fedora 36 And Later Derived Distributions:
postgresql-setup --initdb
systemctl enable postgresql.service
systemctl start postgresql.service
2 of 3 09/03/2023, 16:17
PostgreSQL: Linux downloads (Red Hat family) https://www.postgresql.org/download/linux/redhat/
3 of 3 09/03/2023, 16:17