conflicts with file from package epel-release-6-8.noarch

安装rpm-build包时与epel-release-6-8.noarch冲突,报错:

Transaction check error:
file /etc/rpm/macros.ghc-srpm from install of redhat-rpm-config-9.1.0-88.el7.centos.noarch conflicts with file from package epel-release-6-8.noarch
Error Summary

这个报错的意思大概是rpm-build安装时与机器上的epel-release-6-8.noarch冲突。可能机器上的yum.repos中有epel的安装源配置并且安装过。所以只需要清除就好

yum erase epel-release

再重新安装rpm-build

yum install -y rpm-build
发布了133 篇原创文章 · 获赞 125 · 访问量 39万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章