1.安装 yum-complete-transaction
[root@linux-node1 ~]# yum -y install yum-utils
2.清除yum缓存
[root@linux-node1 ~]# yum clean all
3.执行清理未完成事务
[root@linux-node1 ~]# yum-complete-transaction --cleanup-only
1.安装 yum-complete-transaction
[root@linux-node1 ~]# yum -y install yum-utils
2.清除yum缓存
[root@linux-node1 ~]# yum clean all
3.执行清理未完成事务
[root@linux-node1 ~]# yum-complete-transaction --cleanup-only