Today while working on CentOS 7, I used yum command to install some packages. But I interrupted the yum command by pressing CTRL + C
from keyboard. Which lead me to this error :
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or “yum-complete-transaction –cleanup-only” and “yum history redo last”, first to finish them. If those don’t work you’ll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package
I was using Minimal Installed CentOS 7 on Server. Hence, the command yum-complete-transaction
was not available by default.
The command yum-complete-transaction can be get by installing the yum-utils
package.
To solve this error , follow the given below steps
yum install yum-utils
Then run the command
yum-complete-transaction --cleanup-only
I hope it will solve your problem also.
Thank you!! This helped me after many frustrating days trying to resolve this error.
Thankyou it is useful. It works for me
Awesome
Thanks David for giving feedback.It will help new CentOS 7 users
Thanks and Regards
Sharad
thnak you