A. Online - Installation from Binaries
1. Install the repository RPM
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2. Disable the built-in PostgreSQL module
sudo dnf -qy module disable postgresql
3. Install PostgreSQL
sudo dnf install -y postgresql16-server
4. Optionally initialize the database and enable automatic start
sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
sudo systemctl enable postgresql-16
sudo systemctl start postgresql-16
5. Install extensions packages
# dnf install postgresql16-contrib.x86_64
