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"

rogerdpack
  • 1,715

2 Answers2

11

This worked

 sudo yum-complete-transaction --cleanup-only

from here

rogerdpack
  • 1,715
1

On CentOS 7 you should first run:

yum install yum-utils

then run:

sudo yum-complete-transaction --cleanup-only
Stephen Kitt
  • 434,908
  • 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. – Toby Speight Jan 07 '22 at 14:46