Websoft9Archive / role_common

common role
Other
0 stars 5 forks source link

AmazonLinux2 repo conflict with CentOS7 repo sometimes #13

Closed chendelin1982 closed 3 years ago

chendelin1982 commented 3 years ago

e.g yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

Install 1 Package (+1 Dependent package)

Total size: 38 k
Installed size: 55 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test

Transaction check error:
file /etc/os-release from install of centos-release-7-9.2009.1.el7.centos.x86_64 conflicts with file from package system-release-1:2-12.amzn2.x86_64
file /etc/rpm/macros.dist from install of centos-release-7-9.2009.1.el7.centos.x86_64 conflicts with file from package system-release-1:2-12.amzn2.x86_64
file /etc/system-release from install of centos-release-7-9.2009.1.el7.centos.x86_64 conflicts with file from package system-release-1:2-12.amzn2.x86_64
file /etc/system-release-cpe from install of centos-release-7-9.2009.1.el7.centos.x86_64 conflicts with file from package system-release-1:2-12.amzn2.x86_64
file /usr/lib/systemd/system-preset/90-default.preset from install of centos-release-7-9.2009.1.el7.centos.x86_64 conflicts with file from package system-release-1:2-12.amzn2.x86_64
qiaofeng1227 commented 3 years ago

Conflict is a correct information, it mean conflicts package can be installed together.
You should use another package which have not confilcts.