我在执行yum update的时候碰到以下错误
Transaction Check Error:
file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64
file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64
file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64
file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.9-4.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
先用以下命令查看装有多少个不同的包:
rpm -qa | grep systemtap
然后用以下的命令删除重复的低版本的包:
rpm -e --allmatches --nodeps systemtap-runtime-2.5-5.el6.x86_64
rpm -e --allmatches --nodeps systemtap-devel-2.5-5.el6.x86_64
查看以及清除所有的重复包:
yum install yum-utils
yum-complete-transaction --cleanup-only
#清除可能存在的重复包
package-cleanup --dupes
#清除可能存在的损坏包
package-cleanup --problems
#清除重复包的老版本:
package-cleanup --cleandupes
删除旧的系统包:
package-cleanup --oldkernels