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