7
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

11

This worked

 sudo yum-complete-transaction --cleanup-only

from here

2
  • 1
    works like a charm on CentOS 6.10 x86.
    – alphaGeek
    Commented 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
    Commented Nov 5, 2020 at 20:34
1

On CentOS 7 you should first run:

yum install yum-utils

then run:

sudo yum-complete-transaction --cleanup-only
1
  • 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. Commented 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 .