Product SiteDocumentation Site

7.4. yum-complete-transaction

yum-complete-transaction is provided by yum-utils pacakge, and it offers the possibility to finish incomplete yum transactions. This situation is typically necessary, when the yum command displays an output similar to:
...
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
...
yum-complete-transaction is a program that searches for incomplete or aborted yum transactions in the system and tries to complete them. Search the transaction-all* and transaction-done* archives that are normally found in /var/lib/yum looking for a transaction that has been aborted in the middle of its execution.
If more than one transaction is not completed, it will attempt to complete the most recent first. You can run this program more than once to clean up all unfinished transactions.
$ sudo yum-complete-transaction
...
There are 1 outstanding transactions to complete. Finishing the most recent one
The remaining transaction had 3 elements left to run
Package recode-3.6-26.fc9.i386 already installed and latest version
Package fortune-mod-1.99.1-11.fc9.i386 already installed and latest version
Package gtypist-2.7-6.fc9.i386 already installed and latest version
Nothing in the unfinished transaction to cleanup.
Cleaning up completed transaction file
If you do not want to finish any of these transactions you may simply clean the history with --cleanup-only option.
# yum-complete-transaction --cleanup-only
Loaded plugins: dellsysidplugin2, fastestmirror, kernel-module, presto,
              : priorities, protectbase, upgrade-helper, versionlock
Loading mirror speeds from cached hostfile
 * fedora: mirrors.ucr.ac.cr
 * livna: rpm.livna.org
 * rpmfusion-free: lordmorgul.net
 * rpmfusion-free-updates: lordmorgul.net
 * rpmfusion-nonfree: lordmorgul.net
 * rpmfusion-nonfree-updates: lordmorgul.net
 * updates: mirrors.ucr.ac.cr
0 packages excluded due to repository protections
Reading version lock configuration
Checking for new repos for mirrors
Cleaning up unfinished transaction journals
Cleaning up 2009-09-04.01:09.22
Cleaning up 2009-09-05.07:12.25