今天yum install perl 出错
file /usr/share/man/man1/perlmod.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlmodinstall.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlmodlib.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlmodstyle.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlmpeix.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlnetware.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlnewmod.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlnumber.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlobj.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlop.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlopenbsd.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlopentut.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlos2.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
file /usr/share/man/man1/perlos390.1.gz from install of perl-5.8.8-40.el5_9.x86_64 conflicts with file from package perl-5.8.8-38.el5_8.i386
看错误内的大部分信息,就大概可以猜出问题的症结。64位系统内的i386和x64软件的冲突,那么卸载掉i386的冲突相关软件,一般可以解决问题。
两种情况,要不把perl的升级忽略掉,要不卸载了perl的i386。
yum update --exclude=perl
找出要冲突的软件
rpm -q perl --qf '%{NAME} %{VERSION} %{ARCH}'
得到输出:
perl 5.8.8 x86_64
perl 5.8.8 i386
卸载掉冲突的i386包:
rpm -e perl.i386
再次升级,搞定!