Fedora preupgrade from local mirror
If you have a local mirror and want to use it as the mirror for preupgrade then follow the these normal steps EXCEPT do the following BEFORE you run the preupgrade(-cli) command:
- Download the releases.txt file used:
- Modify the releases.txt file, I changed the Fedora 14 (what I’m upgrading to) options to:
[Fedora 14 (Laughlin)]
Note: I commented out the ‘mirrorlist’ and ‘installmirrorlist’ options and added the ‘baseurl’ and ‘installurl’ options.
- Finally run the preupgrade command from this directory, as one of the locations it looks for the releases.txt file is ./ (current directory).
For more places you can put the releases.txt see here or see the same info at the end of this post.
preupgrade - tool to help you update a fedora system from one distro to the
next. Pre-resolves dependencies and sets up the system to be
upgraded via anaconda
License: GPLv2 or above
= NOTES =
== Cleanup ==
preupgrade modifies data in ~3 places:
If you want to clean up manually, you can do:
Or, if you really want to be sure, do it by hand:
rm -rf /var/cache/yum/preupgrade* /boot/upgrade
== Remote Headless Upgrades ==
Use preupgrade-cli --vnc=VNCPASSWORD.
See preupgrade-cli --help for more info.
The upgrade will start a VNC server on port 5901, requiring the given password.
The upgrade will proceed whether you connect the VNC client or not.
--> IMPORTANT NOTE ABOUT VNC INSTALLS <--
If something goes wrong or the installer needs more info, it will hang forever,
waiting for you to tell it what to do. So you should probably connect a VNC
client and monitor its progress.
== Adding Custom Distributions ==
preupgrade searches the following locations for release data, in order:
If you want to add your own distribution to preupgrade: download releases.txt,
edit it to your liking, then run preupgrade from that dir - or save it to
~/releases.txt to make it work when preupgrade is run normally.
Please note that /usr/share/preupgrade/releases.list is ignored and is only
being shipped for compatibility reasons. Use ~/releases.txt for customization.