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

I don't want to finish the transaction, how do I just nuke it?

Running yum clean all doesn't do it. Running yum-complete-transaction and answering "N" to the prompt also no, it just said "Not removing old transaction files"

2 Answers 2


This worked

 sudo yum-complete-transaction --cleanup-only

from here

  • 1
    works like a charm on CentOS 6.10 x86.
    – alphaGeek
    Nov 2, 2020 at 11:33
  • 1
    I get this error, but the command, even though it suggests it for me, does not seem to work on centos7 core
    – gstlouis
    Nov 5, 2020 at 20:34

On CentOS 7 you should first run:

yum install yum-utils

then run:

sudo yum-complete-transaction --cleanup-only
  • This is very similar to the other answer - it's probably better to edit that to say that yum-utils must be installed, rather than writing a new answer that's mostly duplicate. Jan 7, 2022 at 14:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .