更新epel回购到6 – epel-release-6-x .noarch与包中的文件冲突epel-release-5-x.noarch

我正在关注从Centos 5到Centos 6的epel回购升级指南( http://www.thegeekstuff.com/2012/06/enable-epel-repository/和http://www.linuxquestions.org/questions/linux -server-73 / epel-issues-centos-6-a-4175424243 / ),并得到一个奇怪的错误。 我该如何解决这个问题?

rpm -ivh epel-release-6-8.noarch.rpm Preparing... ########################################### [100%] file /etc/yum.repos.d/epel-testing.repo from install of epel-release-6-8.noarch conflicts with file from package epel-release-5-4.noarch file /etc/yum.repos.d/epel.repo from install of epel-release-6-8.noarch conflicts with file from package epel-release-5-4.noarch 

只要你确定你正在运行C6,请尝试rpm -Uvh epel-release-6-8.noarch.rpm 。 这将升级包(即更换旧的更新),而不是试图将两个并排安装。

正如我的评论所述,如果你正在运行CentOS 6,那么删除epel-release-5-4包,或者按照MadHatter的build议升级它。
无论哪种方式,CentOS都不支持主要的版本升级,以后可能会遇到麻烦。