From Fedora Project Wiki

(→‎How do I use it?: Common_F23_bugs#plymouth-theme-upgrade)
(→‎How do I use it?: make the instructions release-ready, update for the latest system-upgrade, ditch [--option] optional arg syntax since it confused some people)
Line 11: Line 11:
# Update your system using the standard updater for your desktop or {{command|pkcon}} or {{command|dnf}}:
# Update your system using the standard updater for your desktop or {{command|pkcon}} or {{command|dnf}}:
#* {{command|1=sudo dnf update}}
#* {{command|1=sudo dnf update}}
#* It is wise to reboot the computer, especially if you've just installed a new kernel.
#* Please note that there is [[Common_F23_bugs#plymouth-theme-upgrade|an issue]] if you use a non-default plymouth boot theme. If you do, please follow the issue description to make sure your upgrade will not be affected.
#* Please note that there is [[Common_F23_bugs#plymouth-theme-upgrade|an issue]] if you use a non-default plymouth boot theme. If you do, please follow the issue description to make sure your upgrade will not be affected.
# Install the {{package|dnf-plugin-system-upgrade}} package:
# Install the {{package|dnf-plugin-system-upgrade}} package:
#* {{command|1=sudo dnf install dnf-plugin-system-upgrade --enablerepo=updates-testing}}
#* {{command|1=sudo dnf install dnf-plugin-system-upgrade}}
# Download the updated packages:
# Download the updated packages:
#* {{command|1=sudo dnf system-upgrade download --releasever={{FedoraVersionNumber|next}} --best [--allow-erasing]}}
#* {{command|1=sudo dnf system-upgrade download --releasever={{FedoraVersionNumber|next}}}}
#* {{code|--best}} will cancel the upgrade, with information, if any available upgraded package cannot be installed due to dependency issues (without {{code|--best}}, such packages will simply be left out, possibly resulting in an incomplete upgrade). After inspecting the packages with problems you may decide to go ahead without {{code|--best}}, but it is a good idea to try with {{code|--best}} first.
#* If some of your packages would have unsatisfied dependencies, the upgrade will refuse to continue until you run it again with an extra {{code|--allowerasing}} option. This often happens with packages installed from third-party repositories for which an updated repositories hasn't been yet published. Please study very careful the output and examine which packages are going to be removed. None of them should be essential for system functionality, but some of them might be important for your productivity.
#* {{code|--allowerasing}} will remove instead of skipping packages with unsatisfiable dependencies. This often happens with packages installed from third-party repositories for which an updated repositories hasn't been yet published. Very careful study the output and examine which packages are going to be removed (ensure that none of them provide essential system functionality) before confirming the operation. It is a good idea to try without {{code|--allowerasing}} first.
#* In case of unsatisfied dependencies, you can see more details if you add {{code|--best}} option to the command line.
# Trigger the upgrade process:
# Trigger the upgrade process:
#* {{command|sudo dnf system-upgrade reboot}}
#* {{command|sudo dnf system-upgrade reboot}}

Revision as of 16:22, 2 November 2015

What is DNF system upgrade?

dnf-plugin-system-upgrade is a plugin for the Dnf package manager which handles system upgrades. It is the recommended upgrade method for Fedora since the release of Fedora 23 Beta. The Changes/DNF_System_Upgrades page documents the initial introduction of this mechanism.

What does DNF system upgrade do?

DNF system upgrade can upgrade your system to a newer release of Fedora, using a mechanism similar to that used for offline package updates. The updated packages are downloaded while the system is running normally, then the system reboots to a special environment (implemented as a systemd target) to install them. Once installation of the updated packages is complete, the system reboots again to the new Fedora release.

How do I use it?

  1. Update your system using the standard updater for your desktop or pkcon or dnf:
    • sudo dnf update
    • It is wise to reboot the computer, especially if you've just installed a new kernel.
    • Please note that there is an issue if you use a non-default plymouth boot theme. If you do, please follow the issue description to make sure your upgrade will not be affected.
  2. Install the Package-x-generic-16.pngdnf-plugin-system-upgrade package:
    • sudo dnf install dnf-plugin-system-upgrade
  3. Download the updated packages:
    • sudo dnf system-upgrade download --releasever=41
    • If some of your packages would have unsatisfied dependencies, the upgrade will refuse to continue until you run it again with an extra --allowerasing option. This often happens with packages installed from third-party repositories for which an updated repositories hasn't been yet published. Please study very careful the output and examine which packages are going to be removed. None of them should be essential for system functionality, but some of them might be important for your productivity.
    • In case of unsatisfied dependencies, you can see more details if you add --best option to the command line.
  4. Trigger the upgrade process:
    • sudo dnf system-upgrade reboot
  5. Wait for the upgrade process to complete.

Frequently Asked Questions

How do I report issues that I find with upgrades?

First see Common F40 bugs or Common F41 bugs to check if the problem is a very prominent issue we already know of. If it is not there, search for an existing bug report. If you do not see a report that matches your symptoms, you can file a new report from the search page.

If you hit issues after upgrade with a specific package, file a bug against the package with which you are having issues.

Does DNF system upgrade verify the software it runs or installs during upgrade?

Yes. The package signing keys for newer Fedora releases are sent to older Fedora releases in order to allow DNF to verify the integrity of the packages it downloads. You can disable this function with the --nogpgcheck parameter if you need to do so for any reason.

Will packages in third party repositories be upgraded?

Yes, if they are set up like regular DNF repositories and do not hard code the repository path. Commonly-used third party repositories usually work fine, but if you attempt to upgrade prior to or soon after an official Fedora release, they may not have updated their repository paths yet, and DNF may be unable to find their packages. This will usually not prevent the upgrade running successfully, though, and you can update the packages from the third-party repository later.

Can I use DNF system upgrade to upgrade to a pre-release (e.g. a Beta)?

Yes. It should always be possible to attempt such an upgrade. Of course, this function is as subject to temporary breakage as is any other aspect of a pre-release, and generally speaking, the earlier the release in question, the less likely it is to work without problems.