How do I fix yum if it is cancelled during an update due to a Ctrl-C or a reboot?

Updated -

Disrupting 'yum' during an update can cause numerous errors and is never recommended. This can severely break 'yum' and cause traceback errors like the ones listed here:

# yum update
Reading repository metadata in from local files 
Traceback (most recent call last): 
 File "/usr/sbin/system-install-packages", line 204, in _apply 
 self.applyChanges(self.mainwin) 
 File "/usr/lib...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content