我正在CentOS 7.6上安装PostgreSQL,我想安装最新版本或至少安装PostgreSQL11
但这是错误消息
[devops@DZBXDEV02 ~]$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[devops@DZBXDEV02 ~]$
[devops@DZBXDEV02 ~]$
[devops@DZBXDEV02 ~]$ sudo yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7.6-x86_64/pgdg-redhat-repo-42.0-4.noarch.rpm
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining /var/tmp/yum-root-QGo8ON/pgdg-redhat-repo-42.0-4.noarch.rpm: pgdg-redhat-repo-42.0-4.noarch
/var/tmp/yum-root-QGo8ON/pgdg-redhat-repo-42.0-4.noarch.rpm: does not update installed package.
Error: Nothing to do
[devops@DZBXDEV02 ~]$
或类似的错误
[devops@DZBXDEV02 ~]$ sudo rpm -Uvh https://yum.postgresql.org/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
Retrieving https://yum.postgresql.org/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
warning: /var/tmp/rpm-tmp.5Sxp1O: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
error: Failed dependencies:
/etc/redhat-release is needed by pgdg-redhat-repo-42.0-4.noarch
[devops@DZBXDEV02 ~]$
不幸的是,我在Google上搜索很多,找不到我的问题的答案。