Upgrading Fedora using dnf directly Participate If you are upgrading using Dnf and it shows any general dependency issues, please file them in Bugzilla. But please read this page, all references pages and search the mailing list archives before filing bugs.
And of course, please help keep this page updated. Upgrading across multiple releases If you need to upgrade across several releases, it is generally recommended to go one release at a time: This tends to reduce the number of package dependency issues you may encounter.
If you are upgrading from an End of life release, please also see the end-of-life section. Instructions to upgrade using dnf 1. Backup your system Backup any personal data to an external hard drive or to another machine. If there is some unrecoverable error that requires a fresh install, you don't want to lose any data. Read about common problems Further down in this page there is a list of common problems specific to dnf upgrades for specific versions.
Some of them require attention before the upgrade. General advice on upgrading Fedora can be found on the Upgrading page. You should also read the Installation Guide and Release Notes for the version you plan to upgrade to - they contain important information regarding upgrading issues. Finally, check the list of Common bugs. Clean Stuff Review and remove all. And if you have selinux enabled then remember to check security context if you move config files around. Find unused config files Merge and resolve the changes found by the following script: Find and review "unused" packages You can find packages not required by other packages with the tool package-cleanup from the yum-utils package: These packages could be candidates for removal, but check to see whether you use them directly or if they are used by applications not backed by rpm packages.
Remove them with dnf remove package-name-and-version. Another useful tool for cleaning up unused packages is rpmreaper.
It's an ncurses application that lets you view rpm dependency graph and mark packages for deletion. Marking one package can make other packages leaf, which you can see immediately, so you don't have to run the tool several times to get rid of whole sub-tree of unused packages. Find and review "lost" packages You can find orphaned packages ie packages not in the repositories anymore with: Do the upgrade If you have 3rd party repositories configured, you may need to adjust them for the new Fedora version.
If you switch from one Fedora release to another there is often nothing that needs to be done. If you switch to Rawhide from a standard Fedora release or vice versa then most of the time you will need to install the Rawhide release RPMs from the 3rd party repository as well or the standard ones, if switching back. Note that the upgrade is likely to fail if there are outdated dependencies from packages not backed by a dnf repository or backed by a repository which isn't ready for the new version.
It is a good idea to do the upgrade outside the graphical environment. Log out of your graphical desktop and then fedora-upgrade A small script named fedora-upgrade is available which aims to automate the process outlined below. Alternatively, follow the manual steps: If you are upgrading from an older Fedora or upgrading across three or more releases, you may need to import the signing key for the target release.
If it turns out not to be, you should be able to import keys like so: You can also find package signing keys for currently-supported releases here. Keys for EOL releases can be found here. Click Primary or Secondary, if you are using a secondary architecture , and you will see Get it from: Fedora Project, where Fedora Project is a link.
Copy that URL, and run: On old releases, rpm may have trouble doing this; if that happens, download the file with curl -o or wget and import the downloaded file.
Always connect to the mains, if using a laptop. However, if your system does have a battery, it's a good idea to ensure it's charged and connected in case of a power outage during the upgrade. Do not interrupt an upgrade for any reason Once a live upgrade is started, do not stop the upgrade by rebooting, killing the process, or by any other method until it is complete.
Interrupting an upgrade will cause the affected system to be in a mixed state -- partially the old release and partially the new release. In this state, the system will not be reliable and will not operate as expected. You can try running dnf distro-sync and package-cleanup --problems to try and fix the problems. Run the upgrade command: These are often caused by packages being retired in the newer release, but not properly obsoleted.
Often it is enough to remove several problematic package s. You may find that a package you care about depends on a package that must be removed for the upgrade to proceed. Usually you will be able to reinstall the important package once the upgrade is complete. If it seems like you must remove a package with many dependencies, especially ones that look important, please be careful. If you are attempting to upgrade across multiple releases, try a smaller jump to see if that avoids the problem.
If you are at all unsure in any way, ask for help on a mailing list, forum or IRC before removing packages. Make sure Fedora is upgraded Distro-sync will usually take care of upgrades for the third party repositories you have enabled as well. Confirm with dnf repolist after the upgrade process is over.
That is probably because you have used non-standard repositories or installed non-standard packages manually. Try to guess which packages cause the problem or at least is a part of the dependency chain - uninstall them and try again. Remember to install the packages again if they are essential. If you have more than one hard disk, make sure you use the correct device!
If you get an error e. It might also be necessary to update the grub config file: Cleanup your system Again, cleanup your system as described in section 2. Also you might want to remove some cache files that are no longer used, for example files from older Fedora releases in the following directories: From pre-release If you are upgrading to a final release from an Alpha, Beta, or release candidate, please see Upgrading from pre-release to final.
To Rawhide Rawhide is a development release for Advanced users Rawhide is the development branch of Fedora See the Rawhide release page for more information on Rawhide.
Follow the above instructions. Fedora 25 No special instructions. Fedora 24 No special instructions. Upgrading from legacy end of life EOL Fedora releases Note that Fedora strongly recommends against ever running an end-of-life release on any production system, or any system connected to the public internet, in any circumstances.
You should never allow a production Fedora deployment to reach end-of-life in the first place. With that in mind, if you do have an end-of-life release installed on a system you cannot just discard or re-deploy, you can attempt to upgrade it, though this is a less-tested and less-supported operation.