While installing PostgreSQL 14.10 on Linux
system, I was getting the below error, so here is the solution
[oracle@localhost Desktop]$ sudo yum
install postgresql14-server
PostgreSQL common RPMs for RHEL / Rocky 8 -
x86_64
61 B/s |
195 B 00:03
PostgreSQL common RPMs for RHEL / Rocky 8 -
x86_64
1.6 MB/s | 1.7
kB 00:00
Importing GPG key 0x442DF0F8:
......
PostgreSQL 11 for RHEL / Rocky 8 - x86_64
159 kB/s | 1.3 MB 00:08
Last metadata expiration check: 0:00:01 ago on Mon
01 Jan 2024 04:19:30 PM UTC.
All matches were filtered out by modular filtering
for argument: postgresql14-server
Error: Unable to find a match: postgresql14-server
[oracle@localhost Desktop]$
Here I was getting an error, first, we need to execute the below steps
[oracle@localhost Desktop]$ sudo dnf -y
module disable postgresql
Last metadata expiration check: 0:01:36 ago on Mon
01 Jan 2024 04:19:30 PM UTC.
Dependencies resolved.
============================================================================
Package
Architecture Version
Repository Size
============================================================================
Disabling modules:
postgresql
=============================================================================
[oracle@localhost Desktop]$
Once this is done, you can try installing PostgreSQL again and it will be successful
[oracle@localhost Desktop]$ sudo yum
install postgresql14-server
Last metadata expiration check: 0:01:48 ago on Mon
01 Jan 2024 04:19:30 PM UTC.
Dependencies resolved.
======================================================================================
Package
Architecture
Version
Repository Size
======================================================================================
Installing:
.....
Verifying :
postgresql14-14.10-2PGDG.rhel8.x86_64
1/3
Verifying :
postgresql14-libs-14.10-2PGDG.rhel8.x86_64 2/3
Verifying :
postgresql14-server-14.10-2PGDG.rhel8.x86_64 3/3
Installed:
postgresql14-14.10-2PGDG.rhel8.x86_64
postgresql14-libs-14.10-2PGDG.rhel8.x86_64
postgresql14-server-14.10-2PGDG.rhel8.x86_64
Complete!
[oracle@localhost Desktop]$