Fedora Release Upgrade

Want to support HowtoForge? Become a subscriber!
 

Here are the steps you should follow if you want to upgrade one Fedora Core release (for example Fedora Core 3 to Fedora Core 4).

# Make sure all repo files(base, updates, extras) are in place
# Make sure all repositoryes are reacheable
# Download & install the new fedora release files
# Upgrade the system with Yum

‘'’Warning: DO NOT UPGRADE SYSTEMS WHICH HAVE ADMINISTRATION SOFTWARE(CONFIX, PLESK, CPANEL OR EXIM). THE UPGRADE WILL CRASH THE INSTALLED CONTROL PANEL. AND YOU WILL NEED REINSTALL�’

== Repo files ==

You have to have this files in /etc/yum.repos.d :
fedora.repo
fedora-updates.repo
fedora-extras.repo

[fedora.repo]
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://==fedora_mirror==/$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[fedora-updates.repo]
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://==fedora_mirror==/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[fedora-extras.repo]
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://==fedora_mirror==/extras/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

== Download & Install fedora-release-xxxxxx.rpm ==

Download from the mirror this file: $relverstion/i386/os/Fedora/RPMS/fedora-release-xxxxxx.rpm

Then install it: rpm -ivh fedora-release-xxxxxx.rpm

== Upgrade the system ==

Upgrade the system using YUM:

# yum update

Do not use yum -y on customer machines. It is higly posible to break a package during the upgrade.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Sun, 2006-06-04 16:35.

If you are upgrading from 3-4 or 4-5 and you try to run

rpm -ivh fedora-release-xxxxxx.rpm

It will give errors on conflicts from your current version.

try using : -

rpm -U fedora-release-xxxxxx.rpm

instead, to upgrade the rpm not install it.

I got my 5.5 link from Here

Submitted by Anonymous (not registered) on Tue, 2006-02-28 07:51.
Submitted by Anonymous (not registered) on Mon, 2006-02-20 08:51.
How did you manage to install fedora without "fedora-release-xxxxxx.rpm" (all .repo files in /etc/yum.repo.d/ come from it)? What to do if 'CONFIX, PLESK, CPANEL OR EXIM' are installed, never update (none of these is fedora package)?
Submitted by charles (registered user) on Mon, 2007-12-17 20:02.

> How did you manage to install fedora without "fedora-release-xxxxxx.rpm"

Didn't.  The fedora-release-xxxxxx is installed.  The idea is to upgrade fedora-release to the new distro, then upgrade from there.  I.e., if you're upgrading from fc7 to fc8, you already have the "fedora-release" package for fc7 installed.  Use rpm -Uhv http://somemirror/pub/fedora/linux/updates/8/i386/fedora-release-8-5.noarch.rpm to upgrade "fedora-release" (the .repo files) to fc8.  then do a yum upgrade.

Of course, if you have other .repos (e.g. atrpms, livna) use rpm -Uhv to upgrade them to fc8 too, before doing "yum upgrade".  Its probably a good idea to do this first:

# rpm -qf /etc/yum.reos.d/*.repo

to see what you've got.