yum安装时清除缓存的解决办法


缓存清除的方法

关于使用yum“The program package-cleanup is...”的解决办法
在使用yum 时总是有提示信息:
The program package-cleanup is found in the yum-utils package.
或者提示:
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
处理步骤:
# 安装 yum-complete-transaction
yum install yum-utils
# 运行 yum-complete-transaction
yum-complete-transaction --cleanup-only
# 清除可能存在的重复包
package-cleanup --dupes
# 清除可能存在的损坏包
package-cleanup --problems
问题解决!

  

删除原来的需要的包,重新安装

报错:

You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.



解决:

yum clean all
rpm --rebuilddb
yum update

或者换一个yum源

删掉原来的需要的包,重新安装

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM