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>
File "/usr/share/yum-cli/yummain.py", line 33, in <module>
File "/usr/share/yum-cli/cli.py", line 31, in <module>
File "/usr/share/yum-cli/output.py", 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.
Well, this should tell you what's installed for yum:
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 11:12 AM.|