0% found this document useful (0 votes)
15 views

Instalar Postgres Rhel

Uploaded by

robsonantunes21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Instalar Postgres Rhel

Uploaded by

robsonantunes21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PostgreSQL: Linux downloads (Red Hat family) https://www.postgresql.

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

Linux downloads (Red Hat family)


The Red Hat family of distributions includes:

• Red Hat Enterprise Linux


• Rocky Linux
• CentOS (7 and 6 only)
• Fedora
• Oracle Linux

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.

PostgreSQL Yum Repository


The PostgreSQL Yum 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


• Rocky Linux
• CentOS (7 and 6 only)
• Oracle Linux
• Fedora*
*Note: due to the shorter support cycle on Fedora, all supported versions of PostgreSQL are not available on this platform. We do not

recommend using Fedora for server deployments.

To use the PostgreSQL Yum Repository, follow these steps:

1. Select version:

13

2. Select platform:

Red Hat Enterprise, Rocky, or Oracle version 8

3. Select architecture:

x86_64

4. Copy, paste and run the relevant parts of the setup script:

# Install the repository RPM:


Copy Script
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-
latest.noarch.rpm

# Disable the built-in PostgreSQL module:


sudo dnf -qy module disable postgresql

# Install PostgreSQL:
sudo dnf install -y postgresql13-server

# Optionally initialize the database and enable automatic start:


sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
sudo systemctl enable postgresql-13
sudo systemctl start postgresql-13

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:

yum install postgresql-server

or dnf command on RHEL 8 and Fedora:

dnf install postgresql-server

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

Distribution Version

RHEL / Rocky Linux 9 13

RHEL / Rocky Linux / OL 8 13, 12, 10 and 9.6 via modules

RHEL / CentOS / SL / OL 7 9.2 (also supplies package rh-postgresql10, rh-postgresql96, rh-postgresql95 and rh-postgresql94 via SCL)

RHEL / CentOS / SL / OL 6 8.4 (also supplies package rh-postgresql96, 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):

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

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

For RHEL / CentOS / SL / OL 6

service postgresql initdb


chkconfig postgresql on

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.

Policies | Code of Conduct | About PostgreSQL | Contact

2 of 3 09/03/2023, 16:17
PostgreSQL: Linux downloads (Red Hat family) https://www.postgresql.org/download/linux/redhat/

Copyright © 1996-2023 The PostgreSQL Global Development Group

3 of 3 09/03/2023, 16:17

You might also like