March 26, 2006
(Posted at 7:59 am)How to upgrade from FC4 to FC5 via yum?
Okay, this was something i wanted from the day i saw FC5 release news. Gnome 2.14… was dying to try it (outside vmware & outside a vnc session!)
But had absolutely no clue on how to start this upgrade as
yum upgrade
on vanilla FC4 just updates the system to latest package versions in FC4 repository. Also, i did not wanted to fiddle with yum.conf manually as the system under consideration is my production system! So no risks atall… or i would have to use my test system (which i’m still to get) as my production system. I would certainly not like that… & even my manager wont!
Okay, enough of crap… lets get to business!
NOTE - all steps are to be performed from a root console. You’ll need a decent internet connection to make this happen (in real time!)
0. yum update kernel kernel-devel initscripts kudzu
This should update your kernel to latest in FC4. This is an important step!
1. rpm -qa | grep fedora-release
2. if you find something like “fedora-release-4-2″ as the output, go to step 3, else to step 4
3. rpm -U http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
This will update your yum configuration to fetch latest fc5 rpm’s.
4. rpm -ivh http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/fedora-release-5-5.noarch.rpm
This will set up your yum repositories to fetch latest rpm’s.
5. [optional - steps 5-8] To add livna repositories (extra packages)
rpm -qa | grep livna
6. if you find something like “livna-release-4-0″, go to step 7, else to step 8
7. rpm -U http://rpm.livna.org/livna-release-5.rpm
8. rpm -ivh http://rpm.livna.org/livna-release-5.rpm
9. yum update yum
This is important as the latest yum package is damn faster than the old one. You’ll love the speed!
10. yum upgrade
This will fetch lots of package headers & in the end, you’ll need to say “Y” to start the actual packages download & install. If you want to skip the “y/N” stage, try this
yum -y upgrade
11. Enjoy the coolness!
![]()
Corrections/suggestions all welcome as comments.
Thanks ![]()
A new FC5 user
[update]
Try to leave the “optional” repositories till the upgrade is complete. This is just to make sure that unecessary deps are not created.
Also, if you get any broken dependencies for packages except (kudzu, initscripts), have a look at http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html
Related fedoraforum.org thread -> Thread
![]()



The upgrade sadly aborts with missing deps
http://forums.fedoraforum.org/showthread.php?t=100204
Comment by makuchaku — March 24, 2006 @ 12:16 am