====== Upgrade from FC5 to FC6 ====== This day has finally come ! Fedora Core 6, codenamed <color purple>Zod</color>, is out. If you have Fedora Core 5 already installed, you may want to upgrade. I'll not tell you here what's new and everyhing, you can find that a bit everywhere on the Internet. Just google for it ! Note that upgrading with <color red>yum</color> is not officially recommended by the Fedora Project. This is because it generally works, but MAY also go wrong, and when this happens, you want to know how to fix things. If you're unsure you can cope with broken RPM dependencies, or if something really goes wrong: kernel panics and such, it's possibly a good idea to stick to Fedora Core 5, unless you have some Linux geek at your disposal nearby. Of course, as always, backup your valuable data. It's always a good idea before attempting radical changes to your system. That doesn't apply only to Linux anyway. Now, here's how I've upgraded my two Fedora Core 5 installations : 1) Update your Fedora Core 5 with the latest version of everything. To do that, as you probably already know : <code console> # yum update </code> 2) Now you're up to date for Fedora Core 5, clean all your cached metadata info from <color red>yum</color>, this way : <code console> # yum clean all </code> 3) Now, have a look at your <color green>/etc/yum.repos.d/</color> directory. This is were all the configuration files about your repositories reside. You will probably have to disable any third party repository during the upgrade, to avoid problems. If you use Livna and/or Freshrpms and/or Dries, you can keep them, it worked for me. I personally created a <color green>/etc/yum.repos.d/disabled/</color> directory, where I put the other third party repos. Namely planetccrma, atrpms and greysector. 4) Update your config for the official repos: <code console> # rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm \ http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm </code> If you're using Livna, update it: <code console> # rpm -Uvh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm </code> If you use Freshrpms, update it: <code console> # rpm -Uvh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/6/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm </code> (it may tell you it's already installed, if this is the case, just go on)\\ If you're using Dries, just make sure your dries.repo contains this : <file> [dries] name=Extra Fedora rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/ </file> Note that if during the above RPM installations, you have warnings telling you that <color green>somefile.repo</color> was installed as <color green>somefile.repo.rpmnew</color>, this is NOT right ! But don't panic, in this case just replace the .repo with the fresh .repo.rpmnew. This will happen if you have previously modified the old .repo. 5) Update <color red>yum</color>, Fedora Core 6 comes with <color red>yum 3</color>, which is way faster (the parsing code has been rewritten in C): <code console> # yum update yum </code> 6) Now, it's time to switch to runlevel 3. This way, you'll have much less programs running during the update, which is a Good Thing (tm). Close your KDE/Gnome session, and when you're on the login screen, switch to a virtual console, with CTRL+ALT+F1 for example (F1-F6 should work). Login as root, then type: <code console> # telinit 3 </code> This should close the X server. Feel free to stop any non-critical system service too. 7) Here we are. run : <code console> # yum update </code> And sit back with a drink. Let it download all the headers (more than 1000 !) and calculate the dependencies. Maybe it'll then fail with some dependency problem. Personally, I've updated my whole installation in several steps, for example: <code console> # yum update "a*" </code> This would update all the packages beginning with "a" and all the packages that depends on it. This way, the dependency resolving time is way shorter, and if, say, 150 packages were successfully installed, <color red>yum</color> will not have to take care of them anymore for the rest of the updates. Also, if you have dependency problems, you can temporarily disable the update of a package, using exclude. For example if <color red>mplayer</color> is causing problems: <code console> # yum update --exclude="mplayer*" </code> Of course, you can also remove <color red>mplayer</color>, update your system, and then reinstall it. These deps problems are the most tough part, and the only reason this upgrade method is not officially recommended or supported by the Fedora Project. You may also have no dependency problem at all. It only depends on whether you installed a lot of 3rd party packages or not. During the upgrade process, you'll sometimes have warnings like this: <code console> Warning: file /some/path/file.ext has been installed as /some/path/file.ext.rpmnew </code> This means that the original <color green>/some/path/file.ext</color> has been left untouched, and the file that would have replaced it has been installed as <color green/some/path/file.ext.rpmnew</color>. You may want to write on a sheet of paper the names of these files, to be able to check them after the upgrade. This happens because the <color green>/some/path/file.ext</color> has been modified by you, and the system doesn't want to erase your changes with the new version. Just make a diff between those files, and make (or not) the appropriate changes. The other type of messages is: <code console> Warning: file /some/path/file.ext has been saved as /some/path/file.ext.rpmold </code> This is the opposite. Your old file has actually been replaced by the new one, but your old file has been save as .rpmold in case you need it. The same as above applies: write down the names, and feel free to check it manually after the upgrade. This is probably not critical anyway, but... this is how I've done ! 8) Reboot, and be amazed in front of the fresh Fedora DNA theme ! :) ~~META:date created = 2006-11-03 14:46~~

 
blog/upgrade_from_fc5_to_fc6.txt · Last modified: 08/03/2010 13:25 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki