Quick Fedora release version upgrade command

If you manage many Fedora machines here is a quick one-liner to upgrade Fedora to the next release version:

dnf --refresh upgrade -y && dnf system-upgrade download --releasever=42 -y && dnf system-upgrade reboot

As of today Fedora is at version 42, but simply change the release version to the desired target for any past/future version.

Please note that only one release version jump is supported by Fedora, e.g. from 41 to 42. If you need to upgrade from older versions to the latest, simply run the one-liner sequentially after each reboot.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *