View Single Post
  #1  
Old 10th May 2009, 12:13 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,635
Repository configuration for older Fedora releases.

June 12, 2011. It appears that quite a few of the alternative repositories that I've suggested in the posts below are no longer functional. Rather than flog a dead horse I'm closing this thread and strongly suggest that you use a supported release of Fedora.

Quote:
Note: The Fedora releases here, Fedora Core 1 through Fedora 12, are no longer supported or maintained, so they do not receive bug fixes or security updates. We do not recommend using these releases any more. To obtain the latest, supported version of Fedora, please refer to the main download page, http://get.fedoraproject.org.

For more information about Fedora's support cycle see the life cycle page, http://fedoraproject.org/wiki/LifeCycle
.
Quote:
It has occurred to me that this guide may be mis-interpreted as a guide on how to install any software you want to install for older releases of Fedora. It isn't. It is about being able to use yum for these older versions when the original repositories are long since closed. If you want the latest and greatest software packages you will likely need to update to a current release of Fedora.
I've spent the last day or so installing every Fedora release since Fedora Core 1, excluding Fedora 11, on a computer I had laying around. My goal was to figure out how to get yum to work despite the fact that the stock repositories are long gone in most cases.

I was motivated by the fact that the yum questions are never ending here at Fedora Forum and the question of how to make yum work for these older versions of Fedora seem to be quite common. The usual response is to install the newest and greatest Fedora. That's fine, but there are cases where this is just not possible. I'll outline separately what I've done for each release.

Thank you to forum members Stoat and Pablo Two. Their response in another thread to a member who was asking how to make yum work for an older version of Fedora was what got me thinking about this so I took a que from them and expanded on it

Here's what I've got so far:

Fedora Core 1 (Yarrow)
This version of Fedora uses a file called /etc/yum.conf (as they all do) but the repository configuration is done in this file, unlike later versions of Fedora where there are separate .repo files in /etc/yum.repos.d. The stock /etc/yum.conf looks like this:
Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1
 
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
 
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/1/i386/
 
#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://fedora.redhat.com/updates/testing/fedora-core-$releasever
Under the section [base], comment out the baseurl line and add the line that I've highlighted in red. Do the same for the baseurl line under the [updates-released] section. Once done, try the command yum check-update. It should work just fine.

You will only get one update, however, you should be able to install any software that is available through these repositories. You could consider adding other repositories if you need additional software.




Fedora Core 2 (Tettnang)
This version of Fedora uses a file called /etc/yum.conf (as they all do) but the repository configuration is done in this file, unlike later versions of Fedora where there are separate .repo files in /etc/yum.repos.d. The stock /etc/yum.conf looks like this:
Quote:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
To make the changes to this file and get yum working start by commenting out the first baseurl line, the one two lines below [base], by putting a hash mark (#) in front of the line and then replace it with this line,
Code:
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/
Now, for the second section, comment out the second baseurl line, the one two lines below [updates-released], by putting a hash mark (#) in front of the line and then replace it with this line,
Code:
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/2/i386/
Save the file and exit whatever text editor you were using. Now try the command yum check-update. It should work and there should be no errors. It worked for me and I was able to fully update my Fedora Core 2 system.

If there are errors check for typos. Also, try the urls in your web browser. If the url works there it should work for yum. If it doesn't work in the browser there may be a temporary availability issue. Try again later.

You will only get one update, however, you should be able to install any software that is available through these repositories. You could consider adding other repositories if you need additional software.
__________________
Glenn
The Bassinator

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB

Last edited by glennzo; 24th December 2009 at 11:10 AM.