PDA

View Full Version : Upgrade FedoraCore3 question



satimis
27th November 2004, 04:41 AM
Hi folks,

I'm running FC2 and intend to upgrade it to FC3 from Internet.

The current /etc/yum.conf

$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
# Added this because some mirrors go down and then retying takes forever.
retries=1

##################
## Basic Fedora ##
##################

[base]
name=Fedora Core 2 - i386 - Base
baseurl=http://mirror.hiwaay.net/redhat/fedora/linux/core/2/i386/os
http://rpmfind.net/linux/fedora/core/2/i386/os
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/2/i386/os
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.os

[updates-released]
name=Fedora Core 2 - i386 - Released Updates
baseurl=ftp://ftp.ens.utulsa.edu/pub/linux/fedora/core/updates/2/i386
http://rpmfind.net/linux/fedora/core/updates/2/i386
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/updates/2/i386
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.updates
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/i386/


###################
## Fedora Extras ##
###################

[fedora-stable]
name=Fedora.us Extras (Stable)
baseurl=http://mirrors.kernel.org/fedora.us/fedora/fedora/2/i386/RPMS.stable
http://fedora.quicknet.nl/fedora/fedora/2/i386/RPMS.stable
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.stable
http://fedora.mirror.sdv.fr/fedora/fedora/2/i386/RPMS.stable
http://download.fedora.us/fedora/fedora/2/i386/RPMS.stable

[fedora-unstable]
name=Fedora.us Extras (Unstable)
baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basea
rch/RPMS.unstable
http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable

[fedora-testing]
name=Fedora.us Extras (Testing)
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.testing
http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.testing
http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.testing

###############
## Livna.org ##
###############

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/2/i386/yum/stable
http://livna.cat.pdx.edu/fedora/2/i386/yum/stable

[livna-unstable]
name=Livna.org - Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/unstable


###################
## Miscellaneous ##
###################

[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/2
http://sluglug.ucsc.edu/macromedia/apt/fedora/2

Whether changing all "/fedora/core/2/" to "/fedora/$releasever/" in /etc/yum.conf as follows;
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
# Added this because some mirrors go down and then retying takes forever.
retries=1

##################
## Basic Fedora ##
##################

[base]
name=Fedora Core 2 - i386 - Base
baseurl=http://mirror.hiwaay.net/redhat/fedora/linux/core/$releasever/i386/os
http://rpmfind.net/linux/fedora/core/$releasever/i386/os
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/$releasever/i386/os
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/i386/RPMS.os

[updates-released]
name=Fedora Core 2 - i386 - Released Updates
baseurl=ftp://ftp.ens.utulsa.edu/pub/linux/fedora/core/updates/$releasever/i386
http://rpmfind.net/linux/fedora/core/updates/$releasever/i386
http://mirror.clarkson.edu/pub/distributions/fedora/linux/core/updates/$releasever/i386
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/i386/RPMS.updates
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/i386/


###################
## Fedora Extras ##
###################

[fedora-stable]
name=Fedora.us Extras (Stable)
baseurl=http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/i386/RPMS.stable
http://fedora.quicknet.nl/fedora/fedora/$releasever/i386/RPMS.stable
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/i386/RPMS.stable
http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/i386/RPMS.stable
http://download.fedora.us/fedora/fedora/$releasever/i386/RPMS.stable

[fedora-unstable]
name=Fedora.us Extras (Unstable)
baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basea
rch/RPMS.unstable
http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable
http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.unstable

[fedora-testing]
name=Fedora.us Extras (Testing)
baseurl=http://download.fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
http://fedora.quicknet.nl/fedora/fedora/$releasever/$basearch/RPMS.testing
http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/$basearch/RPMS.testing
http://mirrors.kernel.org/fedora.us/fedora/fedora/$releasever/$basearch/RPMS.testing
http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/$releasever/$basearch/RPMS.testing

###############
## Livna.org ##
###############

[livna-stable]
name=Livna.org - Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/i386/yum/stable
http://livna.cat.pdx.edu/fedora/$releasever/i386/yum/stable

[livna-unstable]
name=Livna.org - Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/unstable


###################
## Miscellaneous ##
###################

[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever
http://sluglug.ucsc.edu/macromedia/apt/fedora/$releasever

and run
# yum update

will take effect.

Any precaution, not to run the box to unstable state OR even the worst, not working and erasing all existing config files resulted.

Kindly advise. TIA

B.R.
satimis

Jman
28th November 2004, 05:07 AM
You could also change the 2s in the names of the entires to $releasever. It would be less confusing.

Your changes seem fine. Not sure what the new FC3 yum does to the config files yet, haven't tried it yet.

The yum update will only update up to the current release, it does not upgrade. There is an upgrade yum option that may do what you want.

Booting the installer and upgrading is recommended.

satimis
28th November 2004, 12:45 PM
Hi Jman,

Tks for your advice.


You could also change the 2s in the names of the entires to $releasever. It would be less confusing.Whether you meant changing;
##################
## Basic Fedora ##
##################


name=Fedora Core 2 - i386 - Base
......
[updates-released]
name=Fedora Core 2 - i386 - Released Updates
.......
to

[base]
name=Fedora Core 3 - i386 - Base
^^^
......
[updates-released]
name=Fedora Core 3 - i386 - Released Updates
^^^

[b]The yum update will only update up to the current release, it does not upgrade. There is an upgrade yum option that may do what you want.From other document people suggest;

1) changing '~/core/2/' to '~/core/3/
on [base] and [updates-released] and comment out all the rest repositories.
2) run "yum upgrade"
3) afterwards changing '~/core/3/' to '~/core/$releasever/' on 1) above and uncomment all rest repositories
4) run "yum update" again.

B.R.
satimis

Jman
28th November 2004, 11:25 PM
Or you even could replace the 3 with the $releasever variable. Whatever. As long as it makes sense to you.

The yum upgrade method seems to be the way to do it. It may work but there are a lot of packages to upgrade.

satimis
29th November 2004, 12:17 AM
Or you even could replace the 3 with the $releasever variable. Whatever. As long as it makes sense to you.

The yum upgrade method seems to be the way to do it. It may work but there are a lot of packages to upgrade.Hi Jman,

Noted with thanks.

A clean installation will be faster and easier. What makes me considering upgrade is other additional packages, non FC3 standard ones, and their configuration. Upgrade is the way to retain them.

B.R.
satimis

k4dgw
29th November 2004, 03:52 AM
I cannot address whether or not upgrading from yum is a good idea, but I can address upgrading vs. clean install. I did one machine clean install and another upgrade. The upgrade had issues with errors in the startup, the yum files had to be updated by hand, and other small issues. It ran fine, but had some errors on boot up and other things I got tired of working through. So I just backed up, wiped, and did a clean install. It worked out well because it gave me to clean up other items that I had not left in the best of shape as I was learning. Good luck, and enjoy a great distribution.

satimis
29th November 2004, 04:54 AM
Hi k4dgw
I cannot address whether or not upgrading from yum is a good idea, .......Your advice noted with thanks

B.R.
satimis

Jman
29th November 2004, 10:12 PM
A clean installation will be faster and easier. What makes me considering upgrade is other additional packages, non FC3 standard ones, and their configuration. Upgrade is the way to retain them.

As far as I can tell, booting the installer and selecting upgrade just upgrades your Fedora Core packages. It's one huge rpm transaction.