[olug] upgrade from Fedora 17 to Fedora 18

Lou Duchez lou at paprikash.com
Sun Jan 20 13:39:56 UTC 2013

So last time a new Fedora came out (Fedora 17), I posted my upgrade 
instructions, which were kind of hairy.  That's because it was a Very 
Special Upgrade, where they were merging the /bin, /sbin, and /lib 
directories with /usr/bin, /usr/sbin, and /usr/lib respectively.  So it 
required a fair amount of hand-holding.

But lest you get the wrong idea about Fedora, the upgrade from Fedora 17 
to 18 is pretty standard, and here's what it consists of:

1) yum update

     A preventative measure, because it's best to make sure your system 
isn't all outdated and weird.

2) yum clean all

     Another preventative measure, to make sure yum isn't all full of cruft.

3) rpm --import https://fedoraproject.org/static/DE7F38BD.txt

     You need a new key to process the new RPMs.

4) yum --releasever=18 --disableplugin=presto distro-sync

     This is what does the updating.

5) rpm --rebuilddb

     This is the only "special" step this time around.  There's a change 
to the yum database structure, so you have to rebuild the yum database 
after upgrading your system.

6) yum repolist

     This step is just to confirm that you're on the Fedora 18 
repositories now.

7) df -h | grep /boot

     This is just to determine whether your boot device is /dev/sda, 
/dev/sdb, or what.  You'll need that for ...

8) /sbin/grub2-install /dev/[device]

     This installs the new boot loader.  What you need to specify here 
is the device (/sda), not the partition (/sda1).

9) reboot

     Say a small prayer and reboot.  It'll almost certainly reboot just 
fine; I did six servers yesterday and they all came back up.

More information about the OLUG mailing list