The "EXACT" steps I used to install postgres. Is anything missing here?
yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7.4-x86_64/pgdg-centos10-10-2.noarch.rpm
yum install -y postgresql10
yum install -y postgresql10-server