Movatterモバイル変換


[0]ホーム

URL:


September 25, 2025: PostgreSQL 18 Released!

Quick Links

Linux downloads (Red Hat family)Red Hat Logo

The Red Hat family of distributions includes:

  • Red Hat Enterprise Linux
  • Rocky Linux
  • AlmaLinux
  • Fedora

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.

PostgreSQL Yum Repository

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:

  • Red Hat Enterprise Linux
  • Rocky Linux
  • AlmaLinux
  • Fedora*

*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:

  1. Select version:
  2. Select platform:
  3. Select architecture:
  4. Copy, paste and run the relevant parts of the setup script:

Included in Distribution

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:

DistributionVersion
RHEL / AlmaLinux 1016
RHEL / Rocky Linux / AlmaLinux 916, 15 and 13 (via modules)
RHEL / Rocky Linux / AlmaLinux / OL 815, 13, 12, 10 and 9.6 via modules
Fedora 4216
Fedora 4116

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-clientlibraries and client binaries
postgresql-servercore database server
postgresql-contribadditional supplied modules
postgresql-devellibraries and headers for C language development

Post-installation

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:

For RHEL / Rocky Linux / AlmaLinux 10, 9, 8 or Fedora 41 and 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 fordirect downloadand manual installation as well.


[8]ページ先頭

©2009-2025 Movatter.jp