yum fails: Fixing Fedora Core 5 yum repositories
Fedora Core 5 is currently EOL – it’s not supported any more. As a result, you might find you can’t use yum to install packages any more – you get an error message about this file not existing:
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml
This is because the repositories that yum uses aren’t there anymore. However you can modify the repositories in /etc/yum/repos.d/ and add these to fix the problem:
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/os/
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/debug/
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/source/SRPMS/
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/debug/
http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/SRPMS/
http://archive.fedoraproject.org/pub/archive/fedora/linux/extras/6/i386/
An example change would be to the /etc/yum/repos.d/fedora-core.repo file:
[core] name=Fedora Core $releasever - $basearch baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/

August 4th, 2009 at 3:01 pm
Wow, really helped me out. I didn’t realize that one of our servers was running such an old version of Fedora, but this helped me get by. We will have to upgrade.
August 5th, 2009 at 12:49 am
Muchos gracias, saved me hours of frustration!!
August 28th, 2009 at 9:36 am
that you. your post should be better ranked by google. i’m glad i finally found it.
October 14th, 2009 at 6:00 pm
Thanks, 3 days now trying to find this info. Cheers!
January 19th, 2010 at 12:49 am
Also saved me lots of time and a fresh install of the latest Fedora…
August 28th, 2010 at 10:30 am
I noticed in fedora 5 that /etc/yum.repos.d contains 7 repo files; and exactly matches the 7 links you’ve posted above, some names in those links matches the files in /etc/yum.repos.d; like the example you gave; and some doesn’t match; and somewhat leads to confusion, could you please kindly guide me to solve the rest to a rest!! Here is what I’m missing:
THE FILES IN /ETC/YUM.REPO.D (In order):
fedora-core.repo (This I’ve solved)
fedora-development.repo (?)
fedora-extras-development.repo (?)
fedora-extras.repo (This I’ve solved)
fedora-legacy.repo (?)
fedora-updates.repo (This I’ve solved)
fedora-updates-testing.repo (?)
I hope for a fast reply and thank you…
Yours