-   Linux - General (
-   -   YUM Error (

zion_rulz 05-14-2009 12:39 AM

YUM Error
I am a Linux novice & have messed up with my yum. yum gives me the following error

[root@9005LTPGEN0142 ~]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in <module>
import yummain
File "/usr/share/yum-cli/", line 33, in <module>
import cli
File "/usr/share/yum-cli/", line 31, in <module>
import output
File "/usr/share/yum-cli/", line 41, in <module>
from yum.i18n import utf8_width, utf8_width_fill, utf8_text_fill
ImportError: cannot import name utf8_width

How do I uninstall and reinstall yum if required? Any help to fix this will be appreciated.

chrism01 05-14-2009 01:18 AM

Well, this should tell you what's installed for yum:

rpm -qa|grep -i yum
Theoretically you could make a note of all those, try

rpm -e yum*

-e = erase

and make notes if it says its going to remove dependencies as well. You'll need to re-install every rpm mentioned in one cmd.

You could also look at

rpm -V yum

first, to see what it says. See man rpm.

All times are GMT -5. The time now is 07:33 PM.