yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

yum install -y postgresql13-server

/usr/pgsql-13/bin/postgresql-13-setup initdb

systemctl enable postgresql-13

systemctl start postgresql-13

systemctl status postgresql-13

id postgres

su - postgres

psql

\conninfo

SELECT version();

SHOW server_version;

​https://dbsguru.com/install-postgresql-13-on-linux-using-yum-command/​