Yum Complete Transaction

While trying to run a yum update I received the below warning message:

Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check

Was not resolved. I am getting transaction not complete pop up errors in CentOS 6.8 apparently because I stopped a yum install before it was completed. I have installed the yum-utils package which is supposed to contain yum-complete-transaction but it is not found. This command to supposed to clean up the dangling transaction.

  1. Yum-complete-transaction is a part of yum-utils program which catch unfinished or aborted yum transactions on a system and try to complete them. For example, when we update the Linux servers via yum package manager sometimes it throws an warning message which read as follows: There are unfinished transactions remaining.
  2. This morning I checked in the rest of the code for yum-complete-transactions. For people running yum versions 3.2.7 and above you can use it pretty much as-is. If you ever have a transaction abort in the middle b/c the power went out, rpm or yum fell over, your system locked up, your ssh connection died.
  3. Solution: Install yum-utils, drop down to root environment (su -) and run the cmd yum-complete-transaction, it should run and fix your yum problem This entry was posted in Computer, server, Software and tagged yum-complete-transaction by muthii.

To resolve this yum-complete-transaction is required to complete the unfinished transactions.


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.

Yum Complete Transaction Rhel 7

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.

Yum Complete Transaction Command Not Found

Run the following to install yum-utils (which provides yum-complete-transaction), cleanup and finish the transactions.

yum install yum-utils
yum clean all
/usr/sbin/yum-complete-transaction --cleanup-only

Now yum commands can be run without the unfinished transactions warning.

yum update

Name

yum-complete-transaction

Synopsis

yum-complete-transaction [options]

General Options

Yum Complete Transaction Command

Authors

Bugs

There are of course no bugs, but should you find any, you should first consult the FAQ section onhttp://yum.baseurl.org/wiki/Faq and if unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug usehttp://bugzilla.redhat.com for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.

Yum Complete Transaction Cleanup Only

Referenced By

Complete

Yum Complete Transaction Rhel 7

yum-utils

Yum-complete-transaction Loop

(1)