質問: ec2上のamazon linux 2のpostgres 9.6 rpmのyumインストールは、依存関係のため失敗します ec2上のamazon linux 2のpostgres 9.6 rpmのyumインストールは、依存関係/ etc/redhat-releaseが原因で失敗します以下はログですsudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm loaded plugins: extras_suggestions, langpacks, priorities, update-motd pgdg-centos96-9.6-3.noarch.rpm | 5.6 kb 00:00:00 examining /var/tmp/yum-root-brrlfo/pgdg-centos96-9.6-3.noarch.rpm: pgdg-redhat-repo-42.0-4.noarch marking /var/tmp/yum-root-brrlfo/pgdg-centos96-9.6-3.noarch.rpm to be installed resolving dependencies --> running transaction check ---> package pgdg-redhat-repo.noarch 0:42.0-4 will be installed --> processing dependency: /etc/redhat-release for package: pgdg-redhat-repo-42.0-4.noarch amzn2-core | 2.4 kb 00:00:00 --> processing dependency: /etc/redhat-release for package: pgdg-redhat-repo-42.0-4.noarch --> finished dependency resolution error: package: pgdg-redhat-repo-42.0-4.noarch (/pgdg-centos96-9.6-3.noarch) requires: /etc/redhat-release
回答: sudo amazon-linux-extrasをお試しくださいamazonには専用チャネルがあります https://aws.amazon.com/amazon-linux-2/faqs/#amazon_linux_extras