关于使用yum“The program package-cleanup is...”的解决办法

在使用yum 时总是有提示信息:
The program package-cleanup is found in the yum-utilspackage.

或者提示:
There are unfinished transactions remaining. You mightconsider running yum-complete-transaction first to finishthem.
The program yum-complete-transaction is found in the yum-utilspackage.
处理步骤:
# 安装 yum-complete-transaction
yum install yum-utils
# 运行 yum-complete-transaction
yum-complete-transaction--cleanup-only

# 清除可能存在的重复包
package-cleanup --dupes
# 清除可能存在的损坏包
package-cleanup --problems
问题解决!
------
出现场景:
旧版本没卸干净又装了新版本,包的依赖性乱了,出现损坏的包
rpm -e packagename 又删不掉

原文链接:http://www.2cto.com/os/201212/177329.html


你可能感兴趣的:(yum,坏包,重复包)