Smooth upgrade from Fedora Linux 13 to 14 using yum

Last weekend I had the urge to upgrade “viasvr”, my headless low power home server which function as file/storage, ftp, squid proxy, torrent and offsite backup pulling my website data from my hosting provider on daily basis. It is also running Hamachi2 which allows me to securely tunnel my browsing session from an unsecured connection like public wifi to my squid proxy server.

Viasvr, before the upgrade, runs on Fedora Linux 13. My plan was to upgrade from Fedora 13 to 14 using yum, a software package manager that installs, updates, and removes packages on RPM-based systems.

Fedora recommended installation method is with a boot media with the Anaconda installer as detailed in the Installation Guide or use PreUpgrade

PreUpgrade is a slightly different upgrade method where all the packages are downloaded before the system is rebooted into the Anaconda installer.

Fedora had a big NOTE about upgrading via yum:
Although upgrades with yum works, it is not explicitly tested as part of the release process by the Fedora Project. If you are not prepared to resolve issues on your own if things break, you should probably use the recommended installation methods instead.

When upgrading with yum you don’t get any help from Anaconda, but if you are lucky you might be able to upgrade systems remotely over ssh and with limited downtime. (You will still need to reboot to get the new kernel and system libraries/services running) Rebooting after such an upgrade is always very exciting.

And exciting indeed, the upgrade went as smooth as possible.. The following steps are from fedora project wiki1 with some modifications as to suit my environment.

 

1. Clean Stuff

Review and remove all .rpmsave and .rpmnew files before and after upgrading. (And if you have selinux enabled then remember to check security context if you move config files around.)

  • Find unused config files
    Merge and resolve the changes found by the following script: yum install rpmconf; rpmconf -a Now find and remove old config which nobody owns: find /etc /var -name '*.rpm?*'

    Now is a good time to remove packages you don’t use – especially non-standard packages.

  • Find and review "unused" packages
    You can find packages not required by other packages with the tool package-cleanup from the yum-utils package: yum install yum-utils; package-cleanup --leaves. These packages could be candidates for removal, but check to see whether you use them directly or if they are used by applications not backed by rpm packages. Remove them with yum remove <package-name-and-version>.
  • Find and review "lost" packages
    You can find orphaned packages (ie packages not in the repositories anymore) with: package-cleanup --orphans. This will also show packages which have been partially uninstalled but where the "%postun" script failed.

2. Do the upgrade

If you have 3rd party repositories configured, you may need to adjust them for the new Fedora version. If you switch from one Fedora release to another there is often nothing that needs to be done. If you switch to Rawhide from a standard Fedora release (or vice versa) then most of the time you will need to install the Rawhide release RPMs from the 3rd party repository as well (or the standard ones, if switching back).

Go to a text console (logging from the console is the recommended mode, I did mine from a remote SSH connection Smile
ctrl + alt + F2

(or)

log in as root, and go into runlevel 3

init 3

Update yum to latest version available in your Fedora version
yum update yum
Install the new fedora gpg key for the version you are updating to

Keys you may find and verify at https://fedoraproject.org/keys but since this is an upgrade from Fedora 13 to 14, I used the following:

rpm --import https://fedoraproject.org/static/97A1071F.txt
Clean the cache

Then remove all traces of the version you are leaving from the yum cache in /var/cache/yum.

yum clean all
Upgrade all packages

 

NOTE:

Once a live upgrade is started do not stop the upgrade by rebooting, killing the process, or by any other method until it is complete, doing so will cause the affected system to be in a mixed state. Partially the old release and partially the new release. In this state the system will not be reliable and will not operate as expected. you can try running yum distro-sync and package-cleanup –problems to try and fix the problems.

yum --releasever=<release_number_you_want_to_sync_to> distro-sync

I used –releasever=14  

 

3. Make sure Fedora is upgraded

Distro-sync will usually take care of upgrades for the third party repositories you have enabled as well. Confirm with

 yum repolist 

after the upgrade process is over. yum might complain about conflicts or requirements. That is probably because you have used non-standard repositories or installed non-standard packages manually. Try to guess which packages cause the problem (or at least is a part of the dependency chain) – uninstall them and try again. Remember to install the packages again if they are essential.

Ensure that all (new) essential packages from the new version are installed with

yum groupupdate Base

You might want to update other groups too, see

yum grouplist

For example

yum groupupdate "GNOME Desktop Environment" \
"Development Tools" "Server Configuration Tools" \
"Hardware Support" "Sound and Video" \
"Graphical Internet" "Fonts" \
"Games and Entertainment" "Printing Software" \
"Administration Tools" "Office/Productivity" "System Tools"

4. Preparing for reboot ( and pray… lol )

Before booting you should usually install the bootloader from your new grub by running

/sbin/grub-install BOOTDEVICE

– where BOOTDEVICE is usually /dev/sda (If you get an error ‘/dev/sda does not have any corresponding BIOS drive’ from that, then try /sbin/grub-install --recheck /dev/sda).

Also, the order of init scripts could have changed from the previous version. A command to reset the order is:

cd /etc/rc.d/init.d; for f in *; do /sbin/chkconfig $f resetpriorities; done

imageAgain, run package-cleanup --orphans to find packages that haven’t been upgraded.

 

After doing all this, I rebooted the server and did a continuous ping test to know if the server comeback online since there is no display to look at,  I have no indication if there’s any error along the way. I usually had a problem with external storage attached to the server such as USB hardisk specially if they are manually added in fstab entry. The bootup process complain if it find a hardware error and drop to a shell.

And to my amazement it came back with all services intact, up and running. Kudos to Fedora Team for making an upgrade from previous version as smooth as possible even using yum.

The last time I did an upgrade like this from Fedora 12 to 13, it was such a headache it ruined my whole week. Not this time….

[kramfs@viasvr ~]$ cat /etc/redhat-release & uname –a
  
Fedora release 14 (Laughlin)
Linux viasvr 2.6.35.11-83.fc14.x86_64 #1 SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

 

1 – http://fedoraproject.org/wiki/Upgrading_Fedora_using_yum

2,886 Comments

  1. Pingback: airport limo service minneapolis

  2. Pingback: ibcbetstep

  3. Carlos Eduardo Veiga

    Appreciating the hard work you put into your site and in depth information you present. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Great read! I’ve saved your site and I’m adding your RSS feeds to my Google account.|

    Reply
  4. Pingback: minneapolis airport car service

  5. Nora

    hey there and thank you for your information – I have
    definitely picked up something new from right here.
    I did however expertise several technical points using this web site, as I
    experienced to reload the website lots of times previous
    to I could get it to load correctly. I had been wondering if your hosting is OK?
    Not that I’m complaining, but sluggish loading instances times will very frequently affect your placement in google and can damage your quality score if
    advertising and marketing with Adwords. Anyway I’m adding this RSS to my email and can look out for a
    lot more of your respective intriguing content.
    Make sure you update this again soon.

    Reply
  6. Pingback: wedding photographer review

  7. Pingback: airport limo service minneapolis

  8. Pingback: how can a doctor earn extra money

  9. Pingback: car service minneapolis airport

  10. Pingback: wedding photographer review

  11. Pingback: minneapolis executive car service

  12. http://www.nasimforum.com/

    Excellent blog here! Also your web site loads up fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as fast as yours lol

    Reply
  13. Pingback: MINNEAPOLIS AIRPORT LIMO SERVICE

  14. Dadado Veig

    I think this is one of the most significant info for me. And i am glad reading your article. But wanna remark on some general things, The web site style is ideal, the articles is really nice : D. Good job, cheers|

    Reply
  15. Luiz Fernando Monteiro Bittencourt

    Terrific work! This is the kind of info that should be shared around the internet.
    Shame on Google for now not positioning this publish higher!
    Come on over and discuss with my web site . Thanks =)

    Reply
  16. Pingback: Seat Cover

  17. Pingback: mysterious places

  18. Pingback: graphic hoodies

  19. Pingback: full print hoodie

  20. Carlos Eduardo Veiga

    Howdy would you mind stating which blog platform you’re using?
    I’m planning to start my own blog soon but I’m having a
    difficult time choosing between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most
    blogs and I’m looking for something completely unique.
    P.S My apologies for getting off-topic but I had to ask!

    Reply
  21. Lelio Vieira Carneiro Junior

    I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get bought an edginess over that you
    wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you
    shield this hike.

    Reply
  22. Pingback: Brad Bass

  23. Grupo Coral presidios

    I love your blog.. very nice colors & theme. Did you create this website yourself or did
    you hire someone to do it for you? Plz answer back as I’m looking to design my own blog and would like to know where u got this
    from. thanks a lot

    Reply
  24. Carlos Eduardo Veiga

    Hi there, just was aware of your weblog via Google, and located that it is truly informative. I’m going to be careful for brussels. I’ll be grateful when you continue this in future. A lot of other people will probably be benefited from your writing. Cheers!|

    Reply
  25. http://www.nhealth-asia.com

    We’re a gaggle of volunteers and starting a new scheme in our community.

    Your website provided us with valuable info to work
    on. You have performed a formidable process and our whole group can be thankful to you.

    Reply
  26. Umanizzare Gestão Prisional Ltda

    For newest news you have to pay a visit web and on world-wide-web I found this web page as a best website for latest updates.

    Reply
  27. Carlos Eduardo Veiga

    I am regular visitor, how are you everybody? This article posted at this site is genuinely nice.

    Reply
  28. taurus best love compatibility signs

    I discovered your blog web site on google and test a couple of of your early posts. Continue to keep up the excellent operate. I simply extra up your RSS feed to my MSN Information Reader. Searching for forward to reading extra from you later on!…
    taurus best love compatibility signs http://www.youtube.com/watch?v=XUgOiw-0RyA

    Reply
  29. Luiz Fernando Monteiro Bittencourt

    It’s an amazing post for all the internet visitors; they will obtain benefit from it I am sure.|

    Reply
  30. Egli Diana Pinto

    If you are going for finest contents like myself, just pay
    a quick visit this web page all the time because it gives feature contents,
    thanks

    Reply
  31. how to make taurus man chase you

    you will have an incredible blog right here! would you prefer to make some invite posts on my weblog?
    how to make taurus man chase you http://www.youtube.com/watch?v=vE6dFtND994

    Reply
  32. Pingback: garbage removal

  33. Pingback: dumpster rental Ocoee

  34. Pingback: prevent fungal nail infection

  35. make leo feel special

    Nice post. I learn one thing more difficult on completely different blogs everyday. It would all the time be stimulating to read content from other writers and observe a bit of one thing from their store. I’d desire to make use of some with the content material on my blog whether or not you don’t mind. Natually I’ll provide you with a hyperlink in your web blog. Thanks for sharing.
    make leo feel special http://www.youtube.com/watch?v=VyEs8DNzZZ4

    Reply
  36. Pingback: roll off dumpsters for rent

  37. Pingback: pick up trash

  38. Lélio Vieira Carneiro Junio

    You’re so awesome! I do not believe I’ve truly read a single thing like that before.
    So nice to discover somebody with some unique thoughts on this
    subject matter. Seriously.. thanks for starting this up.
    This web site is one thing that’s needed on the web, someone with some originality!

    Reply
  39. Pingback: toe fungus infection

  40. Pingback: rent a bin prices

  41. tercio borlenghi junior

    After I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive four emails
    with the same comment. Is there a means you can remove me from that
    service? Cheers!

    Reply
  42. Pingback: 10 yard dumpster prices

  43. Pingback: Eco Slim

  44. Pingback: dumpster rental marlette

  45. Pingback: home toenail fungus treatment

  46. Grupo Serval presidios

    Pretty section of content. I just stumbled upon your web site and in accession capital to assert that I get in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.|

    Reply
  47. Pingback: 5 yard dumpster rental

  48. tercio borlenghi jr

    Every weekend i used to pay a quick visit this web page,
    as i want enjoyment, for the reason that this this web
    page conations in fact fastidious funny stuff too.

    Reply
  49. tercio borlenghi jr

    I am sure this article has touched all the internet people, its really really
    nice paragraph on building up new webpage.

    Reply
  50. Pingback: trash dumpster dimensions

Leave a Comment

Your email address will not be published. Required fields are marked *