[root@ipaserver ~]# yum install ipa-server

Transaction Check Error:
  file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch
  file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch

 

从上面可以看出是因为软件包冲突造成的

perl-XML-SAX-0.96-7.el6.noarch

 perl-XML-SAX-Base-1.04-1.el6.rf.noarch

查看yum安装时出现的

Dependencies Resolved

===========================================================================================
 Package                           Arch                 Version                                  Repository              Size
===========================================================================================
Installing:

perl-XML-SAX                   noarch               0.96-7.el6                               base                    78 k
perl-XML-SAX-Base         noarch               1.04-1.el6.rf                            rpmforge                27 k

可以看出这2个软件包用了不同的软件仓库造成了软件包的冲突

解决办法:

[root@ipaserver yum.repos.d]# vim rpmforge.repo

### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1