Red Hat Bugzilla – Bug 459328
RFE: provide a way to clean stale/failed preupgrade files, to allow re-running it.
Last modified: 2014-01-21 01:10:31 EST
Description of problem:
This was originally reported as bug #444979:
Suppose one completes (partially or totally) the first phase of preupgrade -
until reboot. Than it changes mind and don't want to perform the upgrade. Could
you please explain how to revert system in the old *clean* state (delete all
packages, images and grub entries that preupgrade has created, freeing disk space) ?
There is no apparent way of regaining the clean system state if upgrade via preupgrade is interrupted.
Please provide a way (software, documentation) for regaining a clean system state in upgrade is interrupted.
1. you have to remove the entry from your /etc/grub.conf manually - it should be the first entry
2. go to /var/cache/yum/preupgrade and remove all the files here.
that should be it.
preupgrade modifies data in ~3 places:
If you want to clean up manually, you can do:
rm -rf /var/cache/yum/preupgrade* /boot/upgrade
In preupgrade-0.9.8 and later, you can restart preupgrade and answer "No" when it asks if you wish to continue your incomplete upgrade. That will clear out the caches in /var/cache/yum/preupgrade-* and /boot/upgrade. You may still need to run grubby (or edit /etc/grub.conf by hand).
This is absolutely *great news* , but, IMHO, the following action is needed:
- please add a switch to preupgrade, for automatic cleaning of interrupted upgrades (something like "preupgrade --clean")
- please document clearly this options in some *visible* place, say preupgrade's man page and/or online manual.
just encountered it with F17->F18beta.
Cleaned the system using the above methods, it still not cleaned enough - it does not prompt me to again get the files for F18beta.
Re-opening as a RFE.
Preupgrade is obsoleted in favor of fedup. It can't possibly work to upgrade to F18 because the F18 installer doesn't support preupgrade - or any kind of upgrade at all. This is handled by fedup now - see bug 874495.
As for cleanup - "fedup-cli --clean" should remove everything that fedup has changed: delete downloaded files, remove symlinks, revert bootloader changes, etc.
If fedup-cli --clean doesn't clean everything, please open a new bug against fedup.