During the build of a Linux development server earlier I performed a “yum update” to update all of the packages after installing CentOS 5.4. I got busy with other tasks and left the server at work without checking to verify that the update had worked properly. Now after dinner I started to get back to work on the server by installing some new packages via yum and received a yum warning message which I describe in greater detail below along with how to resolve the warning.
CentOS Linux Yum Warning Message:
- 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.
The above message showed up near the top of the output of “yum remove sendmail” and after testing it turns out that the message displays on any yum command that is issued to this server. I assume that earlier when issuing a yum update things did not complete correctly thus leaving some unfinished transactions. Resolving this issue is easy enough though by installing the “yum-utils” package and then running yum-complete-transaction.
Install Yum-Utils Using The Yum Package Manager:
- [root@cent1 src]# yum install yum-utils
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * addons: www.gtlib.gatech.edu
- * base: mirror.steadfast.net
- * extras: mirror.cogentco.com
- * rpmforge: apt.sw.be
- * updates: pubmirrors.reflected.net
- Setting up Install Process
- Resolving Dependencies
- 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.
- --> Running transaction check
- ---> Package yum-utils.noarch 0:1.1.16-14.el5.centos.1 set to be updated
- --> Finished Dependency Resolution
- Dependencies Resolved
- ====================================================================================================================================
- Package Arch Version Repository Size
- ====================================================================================================================================
- Installing:
- yum-utils noarch 1.1.16-14.el5.centos.1 base 69 k
- Transaction Summary
- ====================================================================================================================================
- Install 1 Package(s)
- Upgrade 0 Package(s)
- Total download size: 69 k
- Is this ok [y/N]: y
- Downloading Packages:
- yum-utils-1.1.16-14.el5.centos.1.noarch.rpm | 69 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : yum-utils 1/1
- Installed:
- yum-utils.noarch 0:1.1.16-14.el5.centos.1
- Complete!
As you can see above even when installing the yum-utils package a warning displays about unfinished transactions. The yum-utils package includes numerous yum tools such as yum-complete-transaction, yumdownloader, yum-builddep, yum-debug-dump, and yum-groups-manager. These tools can all be helpful in troubleshooting any yum errors or warnings. Below is the output of running the yum-complete-transactions which simply looks for transactions that were not completed properly and then finishes the yum transaction. As you will see in the output below the packages had all been installed but for some reason the transaction did not close out. There are a ton of packages since I was running yum update for the first time.
CentOS Linux: yum-complete-transaction Output:
- [root@cent1 src]# yum-complete-transaction
Now when running yum commands on this server I do not receive the warning message about yum transactions that need to be completed. The yum-complete-transaction application first checks for incomplete yum transactions, list the number of incomplete yum transactions, list the number of elements per transaction, complete the transactions, and then clean up the now completed yum transaction.
I had the same warnings appear upon attempting to remove a program called freenx. So I followed your instructions and installed the yum-utils. Then ran yum-complete-transaction. And I receive this: “bash: yum-complete-transaction: command not found. any suggestions? I know this is a really old post, and I hope someone is watching. Thanks, WCW
Hello Willow315,
Sorry I missed this previously… It would sound to me as if yum-utils did not install properly. I would try to run “updatedb” and then “locate yum-complete” to see if it exists on the server.
Thanks.
alex