While updating my CentOS / RHEL HP Linux server via yum command it givens an error which read as follows:

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them

How do I fix this problem under RHEL / CentOS Linux 5.x server operating systems?

You will get this message only if yum finds incomplete or aborted yum transactions on a system.

Run yum-complete-transaction

Type the following command to finish transactions:
# yum-complete-transaction
I recommend running yum-complete-transaction –cleanup-only, which is safe option
# yum-complete-transaction --cleanup-only

The yum-complete-transaction command 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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • Avin Aug 7, 2010 @ 7:47

    Is this safe to run ?? it is showing following summary
    Transaction Summary

    Remove 883 Package(s)
    Reinstall 0 Package(s)
    Downgrade 0 Package(s)

    My OS – CentOS 5.4

  • Thilak Jun 6, 2011 @ 6:08

    You’re gonna love this. Here’s my response from Red Hat support.

    Thanks for contacting Red Hat support,

    I would like to point you that this is known issue in RHEL 5, we have already escalated this to Engineering Team and they are working on it.

    As per the current update it seems that this issue likely to be fixed in RHEL 5.5 release.
    Well, there is a moral:

    1. Have good backups ( which, thankfully, I do. )
    2. Never use commands you don’t fully understand. ( Even if yum tells you ‘it’s cool’ ).
    3. AVOID AT ALL COSTS yum-complete-transactions!!!!!. It’s a plague on six syllables.

  • Watcher Nov 28, 2011 @ 10:18

    But, before you can do that command, at least you must install the tool first. Run:

    yum install yum-utils

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum