[root@87-107-108-212 ~]# dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
Last metadata expiration check: 0:00:45 ago on Wed 25 Feb 2026 05:47:40 PM EST.
pgdg-redhat-repo-latest.noarch.rpm                                                                         38 kB/s |  17 kB     00:00
Dependencies resolved.
==========================================================================================================================================
 Package                              Architecture               Version                           Repository                        Size
==========================================================================================================================================
Installing:
 pgdg-redhat-repo                     noarch                     42.0-62PGDG                       @commandline                      17 k

Transaction Summary
==========================================================================================================================================
Install  1 Package

Total size: 17 k
Installed size: 17 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                  1/1
  Installing       : pgdg-redhat-repo-42.0-62PGDG.noarch                                                                              1/1
  Verifying        : pgdg-redhat-repo-42.0-62PGDG.noarch                                                                              1/1

Installed:
  pgdg-redhat-repo-42.0-62PGDG.noarch

Complete!
[root@87-107-108-212 ~]# dnf -qy module disable postgresql
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
[root@87-107-108-212 ~]# dnf install -y postgresql15-server postgresql15
Last metadata expiration check: 0:00:15 ago on Wed 25 Feb 2026 05:48:58 PM EST.
Dependencies resolved.
==========================================================================================================================================
 Package                                Architecture              Version                                 Repository                 Size
==========================================================================================================================================
Installing:
 postgresql15                           x86_64                    15.16-1PGDG.rhel8.10                    pgdg15                    1.7 M
 postgresql15-server                    x86_64                    15.16-1PGDG.rhel8.10                    pgdg15                    6.1 M
Installing dependencies:
 postgresql15-libs                      x86_64                    15.16-1PGDG.rhel8.10                    pgdg15                    299 k

Transaction Summary
==========================================================================================================================================
Install  3 Packages

Total download size: 8.0 M
Installed size: 35 M
Downloading Packages:
(1/3): postgresql15-libs-15.16-1PGDG.rhel8.10.x86_64.rpm                                                  541 kB/s | 299 kB     00:00
(2/3): postgresql15-15.16-1PGDG.rhel8.10.x86_64.rpm                                                       1.4 MB/s | 1.7 MB     00:01
(3/3): postgresql15-server-15.16-1PGDG.rhel8.10.x86_64.rpm                                                133 kB/s | 6.1 MB     00:46
------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     176 kB/s | 8.0 MB     00:46
PostgreSQL 15 for RHEL / Rocky Linux / AlmaLinux 8 - x86_64                                               2.4 MB/s | 2.4 kB     00:00
Importing GPG key 0x08B40D20:
 Userid     : "PostgreSQL RPM Repository <pgsql-pkg-yum@lists.postgresql.org>"
 Fingerprint: D4BF 08AE 67A0 B4C7 A1DB CCD2 40BC A2B4 08B4 0D20
 From       : /etc/pki/rpm-gpg/PGDG-RPM-GPG-KEY-RHEL
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                  1/1
  Installing       : postgresql15-libs-15.16-1PGDG.rhel8.10.x86_64                                                                    1/3
  Running scriptlet: postgresql15-libs-15.16-1PGDG.rhel8.10.x86_64                                                                    1/3
  Installing       : postgresql15-15.16-1PGDG.rhel8.10.x86_64                                                                         2/3
  Running scriptlet: postgresql15-15.16-1PGDG.rhel8.10.x86_64                                                                         2/3
  Running scriptlet: postgresql15-server-15.16-1PGDG.rhel8.10.x86_64                                                                  3/3
  Installing       : postgresql15-server-15.16-1PGDG.rhel8.10.x86_64                                                                  3/3
  Running scriptlet: postgresql15-server-15.16-1PGDG.rhel8.10.x86_64                                                                  3/3
  Verifying        : postgresql15-15.16-1PGDG.rhel8.10.x86_64                                                                         1/3
  Verifying        : postgresql15-libs-15.16-1PGDG.rhel8.10.x86_64                                                                    2/3
  Verifying        : postgresql15-server-15.16-1PGDG.rhel8.10.x86_64                                                                  3/3

Installed:
  postgresql15-15.16-1PGDG.rhel8.10.x86_64 postgresql15-libs-15.16-1PGDG.rhel8.10.x86_64 postgresql15-server-15.16-1PGDG.rhel8.10.x86_64

Complete!
[root@87-107-108-212 ~]#