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事务,建议先运行yum-complete-transaction命令清除。消除警告步骤如下:
1. 安装 yum-complete-transaction(这是一个能发现未完成或被中断的yum事务的程序)
# yum install yum-utils
2. 清除yum缓存
yum clean all
3. 运行 yum-complete-transaction,清理未完成事务
yum-complete-transaction --cleanup-only
运行上述命令需要root权限。yum 会把下载的软件包和header存储在cache中,而不会自动删除。可用yum clean headers清除header,yum clean packages清除下载的rpm包,yum clean all全清