Welcome to Centmin Mod Community
Become a Member

Beta Branch fix PGDG PostgreSQL repo 404 on Oracle Linux in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 31, 2026 at 10:24 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,243
    12,605
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,263
    Local Time:
    5:51 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix PGDG PostgreSQL repo 404 on Oracle Linux in 140.00beta01

    PGDG repo rpm 42.0-70 builds EL9 repo URLs from
    $releasever_major.$releasever_minor. Oracle Linux release packages do not
    provide system-release(releasever_minor), so dnf expands the minor to an
    empty string and requests rhel-9.-x86_64, which returns 404. That stops
    the PostgreSQL devel install and the PHP pgsql configure, and once dnf
    update brings in the new repo rpm, every dnf command that loads the PGDG
    repos fails.

    Changes:
    - add pgsql_pgdg_releasever_fix() to rewrite the PGDG repo file to
    $releasever when no installed package provides
    system-release(releasever_minor); AlmaLinux, Rocky Linux and RHEL repo
    files stay unchanged
    - call it after each EL8/EL9 PGDG repo rpm install
    - also call it at the start of postgresqlinstall() so an existing PGDG
    repo file updated by dnf update is repaired on the next run


    Continue reading...

    140.00beta01 branch