本文最后更新于:November 10, 2022 pm
WSL2 中 Fedora Remix 版本升级
Backup (Optional)
Execute the command in CMD or PowerShell:
1
| wsl --export fedoraremix path_u_wanna\fedoraremix_backup.tar.gz
|
Fresh Up
Install Upgrade Plugin
1 2
| sudo dnf install dnf-plugin-system-upgrade
|
Download New release Packages
1 2 3 4 5 6
| sudo dnf system-upgrade download
Optional: % %
|
Reboot
1
| sudo dnf system-upgrade reboot
|
But it will see a error like this:
1 2
| System has not been booted with systemd as init system (PID 1). Can Failed to connect to bus: Host is down.
|
Don’t worry, and ignore it.
Upgrade
1
| sudo dnf system-upgrade upgrade
|
Now, system upgrade is finished.
Rebuild RPM Database
Clean Useless Packages and Depends
1 2
| sudo dnf -y autoremove sudo dnf -y clean all
|
Check Version
These two commands are all avilable:
1 2
| wslsys cat /etc/fedora-release
|
Reference
- Upgrade Fedora Remix for WSL to 31
- Upgrade Fedora Remix for WSL to 32 (for WSL 2 only)