ImportError: No module named history

Solution Verified - Updated -


  • Attempting to use yum shows the following errors:
[root@host ~]# yum info yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 28, in ?
    import yummain
  File "/usr/share/yum-cli/", line 34, in ?
    import cli
  File "/usr/share/yum-cli/", line 33, in ?
    import output
  File "/usr/share/yum-cli/", line 46, in ?
    import yum.history
ImportError: No module named history


  • Red Hat Enterprise Linux 5.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In