首页 > 其他 > 详细

Yum Pending Transaction

时间:2019-03-01 14:37:08      阅读:212      评论:0      收藏:0      [点我收藏+]

I need to clean yum pending or unfinished transactions before our installer start to work, otherwise the yum update or yum install may fail. But where are these pending transaction from? Sometimes the machine is down or unexpected thing happens, the yum installation process failed.

Problem

you may see error like this:

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.

Solutiona

According to the prompt, we need first install yum-utils

yum install -y yum-utils

yum-complete-transaction is a program which finds incomplete or aborted yum transactions on a system and attempts to complete them. It looks at the transaction-all* and transaction-done* files which can normally be found in /var/lib/yum if a yum transaction aborted in the middle of execution.

If it finds more than one unfinished transaction it will attempt to complete the most recent one first. You can run it more than once to clean up all unfinished transactions.

Then just issue the following command to do a cleanup:

yum-complete-transaction --cleanup-only

You can also check how many pending transactions exist:

find /var/lib/yum -maxdepth 1 -type f -name 'transaction-all*' -not -name '*disabled' -printf . | wc -c

Yum Pending Transaction

原文:https://www.cnblogs.com/chengdol/p/10456149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!