# Install the repository RPM: $ sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm # Install PostgreSQL: $ sudo yum install -y postgresql12-server # Optionally initialize the database and enable automatic start: $ sudo /usr/pgsql-12/bin/postgresql-12-setup initdb $ sudo systemctl enable postgresql-12 $ sudo systemctl start po..