Whitewater Foundry

View Original

Fedora Remix for WSL 38 Released

Fedora 38.0.0:

  • Upgraded to Fedora 38

  • Upgraded to Mesa 23.0.2 with OpenGL 4.0 and GPU video decode

Upgrade Fedora Remix for WSL to 38

You can upgrade your existing installation of Fedora 37 with the following steps.

First, backup your installation:

wsl --export fedoraremix fedoraremix37_backup.tar.gz

Then proceed:

NOTE: DO NOT PERFORM THE UPGRADE STARTING FEDORA REMIX WITH SYSTEMD; IT WILL RUIN YOUR INSTALLATION

#Be sure that systemd is disabled
[ "$(grep -c "^systemd.*=.*true$" /etc/wsl.conf)" -ne 0 ] && sudo sed -i "s/^systemd.*=.*true$/systemd=false/" /etc/wsl.conf && wsl.exe --terminate ${WSL_DISTRO_NAME}

update.sh 
sudo dnf -y upgrade --refresh  
sudo dnf -y install dnf-plugin-system-upgrade  
sudo rpm --import https://src.fedoraproject.org/rpms/fedora-repos/raw/rawhide/f/RPM-GPG-KEY-fedora-38-primary  
sudo dnf -y install distribution-gpg-keys 
sudo dnf -y system-upgrade --allowerasing --skip-broken download --releasever=38  
sudo dnf -y system-upgrade reboot

At this point, it will raise an error, ignore it, and execute the following commands:

sudo dnf -y system-upgrade upgrade   
sudo dnf -y autoremove   
sudo dnf -y clean all   
sudo mandb  
update.sh  
cat /etc/fedora-release
exit

You can then reenable or start with SystemD if you were using it.

Enjoy it!