How to uninstall yum and install yum again?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    sandwich Guest

    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~

  2. #2
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    1,343
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    1,343
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Hey sideways, that's a nice trick for reinstalling stuff. Cheers.

  5. #5
    sandwich Guest
    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~

  6. #6
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    1,343
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    If reinstalling yum doesn't work, it could be a python problem.

  7. #7
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    sandwich Guest
    I will try it later and thank you all ~

  9. #9
    sandwich Guest
    rpm -e --nodeps --justdb yum
    rpm -ivh xxxxx.rpm

    It can works now~

    thx all~

Similar Threads

  1. How do I uninstall after a bad install ?
    By OralDeckard in forum Using Fedora
    Replies: 0
    Last Post: 24th June 2009, 01:22 PM
  2. cant install/uninstall anything
    By nightsight in forum Using Fedora
    Replies: 4
    Last Post: 2nd May 2009, 09:31 PM
  3. Cant install gnome after uninstall
    By storskogen in forum Using Fedora
    Replies: 19
    Last Post: 16th June 2008, 07:20 AM
  4. How to use YUM to install and uninstall packages
    By imdeemvp in forum Guides & Solutions (Not For Questions)
    Replies: 48
    Last Post: 12th July 2007, 12:45 AM
  5. rpm can't uninstall due to nonexistant install
    By Chosen Reject in forum Using Fedora
    Replies: 2
    Last Post: 19th January 2006, 11:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •