{"slug": "upgrading-fedora-in-wsl-md", "title": "upgrading-fedora-in-WSL.md", "summary": "This article provides a step-by-step guide for upgrading a Fedora WSL instance from version 43 to 44, using `dnf system-upgrade` and `dnf5 offline reboot`. After the upgrade, it instructs users to manually rename the WSL profile and shortcut in Windows, and to update the distribution name and shortcut path in the Windows Registry. The guide emphasizes ensuring the WSL instance is stopped before proceeding and warns users to be cautious when editing the Registry.", "body_md": "This is a tried and tested method for upgrading Fedora to a newer version within WSL.\nReplace 43\nand 44\nwith your current version and the target version respectively.\nsudo dnf upgrade --refresh -y\nexit\nwsl --list --verbose\nWait until the Fedora instance shows as Stopped\n.\nReopen Fedora, then run:\nsudo dnf system-upgrade download --releasever=44\nsudo dnf5 offline reboot\nThe upgrade process will begin. Wait a few minutes depending on your system size and package count.\nYou may want to check the status of the WSL VM with:\nwsl --list --verbose\nwsl --update\n- Open Terminal.\n- Click the dropdown arrow (∨) and select Settings.\n- Under Profiles, select\nFedoraLinux-43\n. - Rename it to\nFedoraLinux-44\nand save.\n- Open the Windows Start menu and search for \"Fedora\".\n- Right click\nFedoraLinux-43\nand select Open file location. - Locate\nFedoraLinux-43\n. - Press\nF2\n, rename it toFedoraLinux-44\n, and confirm.\nOpen regedit\nand update the following keys by replacing 43\nwith 44\n:\nHKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Lxss\\{uuid-string}\\DistributionName\nHKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Lxss\\{uuid-string}\\ShortcutPath\nThe OsVersion\nentry updates automatically and does not require manual changes.\n- Upgrade time depends on the number of installed packages.\n- Always ensure the WSL instance is in an appropriate state before proceeding with upgrade steps.\n- Take care when editing the Windows Registry, incorrect changes can affect system behaviour.\nThis process ensures both the Fedora environment and its Windows integrations reflect the upgraded version correctly.", "url": "https://wpnews.pro/news/upgrading-fedora-in-wsl-md", "canonical_source": "https://gist.github.com/innovara/ac00d2cb9507398e1cb5c7fd05e3072b", "published_at": "2026-05-06 20:54:41+00:00", "updated_at": "2026-05-22 19:07:23.005647+00:00", "lang": "en", "topics": ["developer-tools", "open-source", "enterprise-software"], "entities": ["Fedora", "WSL", "Windows", "Microsoft", "FedoraLinux"], "alternates": {"html": "https://wpnews.pro/news/upgrading-fedora-in-wsl-md", "markdown": "https://wpnews.pro/news/upgrading-fedora-in-wsl-md.md", "text": "https://wpnews.pro/news/upgrading-fedora-in-wsl-md.txt", "jsonld": "https://wpnews.pro/news/upgrading-fedora-in-wsl-md.jsonld"}}