答案1
我通过从 pgdg 工具安装成功安装了 pg12 ecpg 工具(参见https://yum.postgresql.org/repopackages.php):
rpm -ivh pgdg-redhat-repo-latest.noarch.rpm
#choose version to disable repo (keep pg12 in my case)
yum-config-manager --disable pgdg94
yum-config-manager --disable pgdg95
yum-config-manager --disable pgdg96
yum-config-manager --disable pgdg10
yum-config-manager --disable pgdg11
dnf -qy module disable postgresql
dnf -y install postgresql12-devel
安装后我对位置感到惊讶:
/usr/pgsql-12/
PGDG rpm 在这里:https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/