Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th November 2007, 11:30 AM
sandwich Offline
Registered User
 
Join Date: Oct 2007
Posts: 26
Question How to uninstall yum and install yum again?

"rpm -e yum" to uninstall yum?
Or another command to uninstall yum?
And how to install yum again?

thx~
Reply With Quote
  #2  
Old 16th November 2007, 11:48 AM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
Why do you want to uninstall/reinstall yum? If you really want to you'll need the --nodeps flag after rpm -e to ignore it's dependencies.

Haydn.
Reply With Quote
  #3  
Old 16th November 2007, 11:55 AM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
The problem with rpm -e --nodeps is that yum will then no longer be available! The trick is to fool the rpm database into thinking you have actually removed yum. So, as root do
Code:
rpm -e --nodeps --justdb yum
yum install yum
I'm not sure if this will fix any problems you are having though, so if you still are stuck post specific details of the issue.
Reply With Quote
  #4  
Old 16th November 2007, 12:42 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
Hey sideways, that's a nice trick for reinstalling stuff. Cheers.
Reply With Quote
  #5  
Old 16th November 2007, 12:56 PM
sandwich Offline
Registered User
 
Join Date: Oct 2007
Posts: 26
Quote:
Originally Posted by HaydnH
Why do you want to uninstall/reinstall yum? If you really want to you'll need the --nodeps flag after rpm -e to ignore it's dependencies.

Haydn.
Because my yum doesn't work~!

[root@localhost Music]# yum update
Loading "fedorakmod" plugin
Loading "presto" plugin
Loading "changelog" plugin
Loading "refresh-updatesd" plugin
Loading "protectbase" plugin
Loading "tsflags" plugin
Loading "security" plugin
Loading "downloadonly" plugin
Loading "basearchonly" plugin
Loading "kernel-module" plugin
Loading "allowdowngrade" plugin
Loading "priorities" plugin
Loading "fastestmirror" plugin
Loading "merge-conf" plugin
Loading "skip-broken" plugin
Loading "protect-packages" plugin
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 154, in getOptionsConfig
disabled_plugins=opts.disableplugins)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 164, in _getConfig
self.getReposFromConfig()
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 229, in getReposFromConfig
parser.readfp(confpp_obj)
File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp
self.data.readfp(fp)
File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp
if line and line[-1]=='\n':

and yun clean all doesn't work either~
Reply With Quote
  #6  
Old 16th November 2007, 01:00 PM
HaydnH's Avatar
HaydnH Offline
Registered User
 
Join Date: Feb 2005
Location: London, UK
Posts: 333
If reinstalling yum doesn't work, it could be a python problem.
Reply With Quote
  #7  
Old 16th November 2007, 01:05 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Having all those plugins is probably not a good idea.

Try disabling plugins
Code:
yum --noplugins update
If that seems to work then try removing the plugin-packages and maybe install only the ones you really need.
Reply With Quote
  #8  
Old 16th November 2007, 01:25 PM
sandwich Offline
Registered User
 
Join Date: Oct 2007
Posts: 26
I will try it later and thank you all ~
Reply With Quote
  #9  
Old 16th November 2007, 01:54 PM
sandwich Offline
Registered User
 
Join Date: Oct 2007
Posts: 26
rpm -e --nodeps --justdb yum
rpm -ivh xxxxx.rpm

It can works now~

thx all~
Reply With Quote
Reply

Tags
install, uninstall, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I uninstall after a bad install ? OralDeckard Using Fedora 0 24th June 2009 01:22 PM
cant install/uninstall anything nightsight Using Fedora 4 2nd May 2009 09:31 PM
Cant install gnome after uninstall storskogen Using Fedora 19 16th June 2008 07:20 AM
How to use YUM to install and uninstall packages imdeemvp Guides & Solutions (No Questions) 48 12th July 2007 12:45 AM
rpm can't uninstall due to nonexistant install Chosen Reject Using Fedora 2 19th January 2006 10:30 PM


Current GMT-time: 06:36 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat