Jonathan Bowman

Tags: wsl

How to Upgrade to Fedora 37 In Place on Windows Subsystem for Linux (WSL)

The time has once again arrived to upgrade Fedora. As detailed in another article, I installed Fedora on WSL 2. Now I want to upgrade to Fedora version 37. I could do a clean install of course, using the steps detailed in that article, but I want to upgrade in place.

Install Docker on Windows (WSL) without Docker Desktop

Updated April 10, 2022, with current Alpine instructions, Debian/Ubuntu package signing tweaks (no more apt-key), and better guidance for handling iptables in Debian. A little more suggestion about TCP access, as well. And further emphasis on the optional nature of the /mnt/wsl/shared-docker socket directory.

You may not need systemd on WSL

To systemd or not to systemd...

Most popular Linux distributions use systemd as the init system. It is like a Swiss-army knife that controls startup, shutdown, service monitoring, and so much more.

In late 2022 Microsoft announced systemd support in WSL.

Prior to that point, however, Windows Subsystem for Linux (WSL) danced to its own initialization tune, and distros running on WSL did not use systemd, and did not generally employ a traditional init system.

This taught folks like me something: I don’t always need to have systemd or other init system for a good Linux experience. Running WSL without systemd is OK.

Use the New Windows Terminal

Once upon a time, the Windows command line was CMD, and it was horrible. No longer.

Install Fedora 37 or earlier on Windows Subsystem for Linux (WSL)

Using Windows Subsystem for Linux (WSL), we have a choice of Linux distributions available in the Windows Store, such as Ubuntu, Kali, Debian, etc.

Using podman instead of docker on Windows Subsystem for Linux (WSL 2)

With Windows Subsystem for Linux (WSL) version 2, running Linux containers is possible and easy. However, Docker does not work without the docker daemon running, systemd is usually used to govern this, and WSL typically does not have systemd running.