yum中断修复

目录

基础介绍

yum在升级或者安装的过程中可能会因为网络或电源等原因出现意外终端,我们可以采取以下方式来进行处理。

如,yum过程中中断后会提示:

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. 

操作方法

1.安装yum-complete-transaction

yum install yum-utils 

2.运行yum-complete-transaction

yum-complete-transaction --cleanup-only 

3.清除可能存在的重复包

package-cleanup --dupes 

4.清除可能存在的损坏包

package-cleanup --problems