$ sudo rpm -ivh --nodeps https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- pgdg-redhat-all.repo の $releasever を 7 に置換
$ cd /etc/yum.repos.d $ sudo perl -i.org -pe 's/\$releasever/7/g' pgdg-redhat-all.repo
- PostgreSQL 11 をインストール
$ sudo yum -y install postgresql11 $ sudo yum -y install postgresql11-contrib