LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-06-2009, 07:05 AM   #1
christian.m.eriksson
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
/etc/yum.repos.d files for Fedora Core 3


Hi!

I have an old system running Fedora Core 3. At last I'm going to try and upgrade it. I had planned to use "yum update" to do that. I've read some documentation but I still don't know what files I need in /etc/yum.repos.d and what they should contain. Does anyone have a working configuration (files to put in /etc/yum.repos.d) to share?

Regards Christian Eriksson
 
Old 11-06-2009, 08:31 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Upgrade to what?

FC3 is ancient. They're up to FC10 now (actually they just call it F10 these days).

Fedora is a short life cycle product so archives aren't kept around that long. It is intended to be a bleeding edge system so you're always getting the latest greatest.

Using yum to "upgrade" the version of Fedora (as opposed to invdidual packages) is not recommended anyway though some have made it work from one version to the next. In your case it appears you'd need to go through 7 versions so the best idea would be to back up everything then simply do a fresh install then restore those things you need from the old install.

If you don't want bleeding edge you might want to try something like CentOS instead. It is a binary compile of RedHat Enterprise Linux (RHEL) sources which has a much longer life cycle. Fedora is used as a test bed for things that eventually end up in RHEL.
 
Old 11-06-2009, 09:32 AM   #3
christian.m.eriksson
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I want to upgrade the fedora version using yum and finally I want to reach the current version, fedora 11. Just for learning how to configure the /etc/yum.repos.d files I can think of starting with upgrading to FC4. At first I need to understand the minimum number of files that are required in /etc/yum.repos.d and also how I direct yum to install a specific fedora version (like for example fedora core 4).

Regards Christian Eriksson
 
Old 11-06-2009, 10:40 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by jlightner View Post
Upgrade to what?

FC3 is ancient. They're up to FC10 now (actually they just call it F10 these days).

. . .
Actually, F11 is the current release, and F12 will (probably) be released this month. Support for F10 will be dropped one month after F12 is released.

Note that F12 is compiled using the -march=i686 machine option, so an Intel 686 ("Pentium") or equivalent AMD processor is assumed for the default PC hardware. If you want to install Fedora on older PC, you'll need to download the sources and compile you own system. (And, of course, any applications you want to use.) F11 assumed an I586 so even that release may not work on older PC hardware.
 
Old 11-06-2009, 01:14 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you WILL NOT -- NOT -- be able to do a yum " upgrade from fedora 3 to 11 .
It is an impossibility.
do a FRESH install of fedora 11 . I had fedora 11 running on a 8 year old dell .
 
Old 11-09-2009, 09:05 AM   #6
christian.m.eriksson
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Ok, thank you for your remarks and suggestions! It would be even nicer if you also could say something about the files in /etc/yum.repos.d and what they should/must contain. This thread was really thought to be about that.

I'll guess it's actually possible for me to upgrade to, let's say FC4. If it's really doable, how should I edit my files under /etc/yum.repos.d? (I know there's a FC4 repository at http://archives.fedoraproject.org/pu...386/os/Fedora/) I'm willing to do this just to learn something and my first priority is not to reach Fedora 11 as fast as possible.

Regards Christian Eriksson
 
Old 11-09-2009, 01:45 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
do not bother trying a upgrade to fedora 4 !!!
do a fresh install with fedora 11 .
 
Old 11-10-2009, 11:34 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by christian.m.eriksson View Post
Ok, thank you for your remarks and suggestions! It would be even nicer if you also could say something about the files in /etc/yum.repos.d and what they should/must contain. This thread was really thought to be about that.

I'll guess it's actually possible for me to upgrade to, let's say FC4. If it's really doable, how should I edit my files under /etc/yum.repos.d? (I know there's a FC4 repository at http://archives.fedoraproject.org/pu...386/os/Fedora/) I'm willing to do this just to learn something and my first priority is not to reach Fedora 11 as fast as possible.

Regards Christian Eriksson
Fair enough, although (in my opinion) somewhat silly.

Anyhow, all you need to do is change the path to the correct repository in the archive. I don't have an old Fedora Core, so I can't be too explicit, but, generally speaking, you need to:
  1. Locate the fedora-release RPM file for the release to which you wish to upgrade in the archived repositories.
  2. Unpack the RPM file and edit the repository definition files to point to the correct archived repositories. (See below.) Note: This may be unnecessary if the changes were made when the repositories were archived.
  3. Move the edited repository definition files to the /etc/yum.repros.d/ directory.
  4. Move the fedora-release fine into /etc
  5. Do a yum upgrade
Here's an example of the unpacking using an old FC7.3 relase file I found:
Code:
Peter@dv9710us:~ $ mkdir rel  
Peter@dv9710us:~ $ cd rel     
Peter@dv9710us:~/rel $ rpm2cpio /home/Gateway-Peter/Downloads/rpm/fedora-release-7-3.noarch.rpm > yum.cpio
Peter@dv9710us:~/rel $ ls
yum.cpio                 
Peter@dv9710us:~/rel $ cpio -i -d <yum.cpio 
68 blocks
Peter@dv9710us:~/rel $ tree ./
./
|-- etc
|   |-- fedora-release
|   |-- issue
|   |-- issue.net
|   |-- pki
|   |   `-- rpm-gpg
|   |       |-- RPM-GPG-KEY
|   |       |-- RPM-GPG-KEY-beta
|   |       |-- RPM-GPG-KEY-fedora
|   |       |-- RPM-GPG-KEY-fedora-rawhide
|   |       |-- RPM-GPG-KEY-fedora-test
|   |       `-- RPM-GPG-KEY-rawhide
|   |-- redhat-release -> fedora-release
|   `-- yum.repos.d
|       |-- fedora-development.repo
|       |-- fedora-updates-testing.repo
|       |-- fedora-updates.repo
|       `-- fedora.repo
|-- usr
|   `-- share
|       `-- doc
|           `-- fedora-release-7
|               `-- GPL
`-- yum.cpio

8 directories, 16 files
If the fedoa-release files have not been updated in the archive, you'll need to change the files in the new etc/yum.repos.d/ (created above by the cpio command) to have the baseurl entrypoint to the archive, and the mirrorlist entry commented out (since the mirrors are not, in most cases, archived).

Good luck, and (as I said, above) this exercise seems to be a monumental waste of your time. But, of course, it's yours to waste.

Last edited by PTrenholme; 11-10-2009 at 11:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora core 6 repos Keroveros Fedora 1 04-15-2009 03:25 AM
Fedora 10 error - yum repos file contains parsing errors... what to do? Bruce Jamieson Linux - Newbie 3 02-05-2009 02:21 PM
YUM Repos - HOW TO rajeshux Red Hat 2 11-15-2008 08:21 AM
YUM - Fedora 5 - How do I get the REPOs to work LexMillian Fedora 4 11-12-2008 01:35 PM
Lost files in yum.repos.d mickeyboa Fedora 1 09-17-2005 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration