最近在使用yum -y update
更新CentOS 7.x的时候终端不小心意外退出了,再次使用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
解决办法如下
#安装 yum-complete-transaction
yum install yum-utils
#运行 yum-complete-transaction
yum-complete-transaction –cleanup-only
#清除可能存在的重复包
package-cleanup --dupes
#清除可能存在的损坏包
package-cleanup --problems