How to upgrade Fedora 16 to Fedora 17 using the command line
A fast procedure to ensure the best result.
This is a series of commands that you can run to get your machine to Fedora 17 from Fedora 16. It does not include any ZFS-on-root-specific steps (which you may have to run at the end of the procedure, more on that below). This procedure is best done not while you're logged on in the graphical user interface.
- yum --releasever=17 update rpm
- rm -f /var/lib/rpm/__*
- rpm --rebuilddb
- rsync -a /bin/ /usr/bin/
- rsync -a /sbin/ /usr/sbin/
- rsync -a /lib/ /usr/lib/
- rsync -a /lib64/ /usr/lib64/
- open a Python interpreter in a second terminal
- import os there
- go back to the original terminal
- in this original terminal, rm -rf /bin/ /sbin/ lib/ lib64/
- return to the second terminal with Python
- os.symlink(/usr/bin,/bin)
- os.symlink(/usr/sbin,/sbin)
- os.symlink(/usr/lib64,/lib64)
- os.symlink(/usr/lib,/lib)
- exit your Python interpreter
- yum --releasever=17 --disableplugin=presto distro-sync
- fixfiles onboot (if you use SELinux)
Voilá. Fedora 17, done.
Unless you have ZFS on root, reboot and your changes shall be complete.
This is what I did, minus a few ZFS-on-root fixes.
If you have ZFS-on-root as per this article, you are encouraged to update your /usr/src/spl and /usr/src/zfs directories, re-patch the /sbin/grub2-mkconfig file (as per instructions in the article), and then re-run deploy-zfs to complete the update.