Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save earentir/3ed9b8d076d08c8a56a8670652931055 to your computer and use it in GitHub Desktop.
Save earentir/3ed9b8d076d08c8a56a8670652931055 to your computer and use it in GitHub Desktop.
Upgrade Fedora in WSL
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=40
## Tell DNF no reboots are needed ever
export DNF_SYSTEM_UPGRADE_NO_REBOOT=1
## triger update
sudo -E dnf system-upgrade reboot
##Upgrade
sudo dnf system-upgrade upgrade
##Cleanup
dnf system-upgrade clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment