Windows Subsystem for Linux can be installed from the Microsoft store in Windows 11

The Windows Subsystem for Linux (WSL) that offered a Ubuntu Bash on Windows was first introduced in 2016, as more and more developers required a Linux environment within Windows, and Microsoft kept on improving it with, for instance, Windows Subsystem for Linux 2 released in 2019 bringing an actual Linux kernel, improved performance, and Docker support.

Until now, WSL was an optional component inside of Windows, requiring you to go to the “Turn Windows Features on or off” dialogue to enable it, and restart your machine. But Microsoft has now announced you can install (a preview of) Windows Subsystem for Linux directly from the Microsoft Store as long as you run Windows 11. The change also means your WSL will be up-to-date as Microsoft pushes new features and bug fixes, and you do not need to modify/update your Windows version to get the latest changes.

Windows Subsystem for Linux Microsoft Store

You’ll still need to go to “Turn Windows features on or off” settings to enable the Virtual Machine Platform, or run the following command in an elevated PowerShell prompt:


Once this is done you can to the Microsoft Store (this link will only work in Windows) to install Windows Subsystem for Linux Preview. Microsoft says they’ll keep maintaining the other method, but hope people will switch to the Microsoft Store version.

The preview also includes other changes such as:

    • WSLg (Windows Subsystem for Linux GUI) is now bundled as part of the WSL app.
    • New wsl.exe mount features
      • Add --mount --vhd to make mounting VHD files easier.
      • Implement filesystem detection for wsl mount. This change implements filesystem type detection if no --type is specified when using wsl.exe mount.
      • Add --name feature to wsl --mount. This change adds support for optionally naming a mountpoint when mounting a disk through WSL.
    • Updated to Linux 5.10.60.1
    • Added progress indicator helper function used to show a “Please Wait” message with animated dots on the conversion process to show users that WSL is still running.
    • Switched wsl --install to not require the --distribution argument. This change switches wsl --install to not require the --distribution argument but maintains support to avoid breaking existing scripts.
    • Added wsl.exe --version command which displays relevant version information

Craig Loewen, program manager at Microsoft, goes through some of the changes in the video below.

If you already have WSL installed an as optional component, the Microsoft Store version will not overwrite anything, it will just install a new version that coexists with the old installation. One user confirmed this in a comments on the YouTube video above:

After installing the Store’s Windows Subsystem for Linux Preview, I see that no new distro gets installed. My existing Ubuntu no longer needs Windows Subsystem turned on (unchecked) but now runs fine without it. I mistakenly expected some new distro was going to get installed and not an in-place upgrade. No worries about losing an existing installation.

By the way, WSL is not only about Ubuntu now, and other Linux distributions are supported, namely openSUSE Leap, SUSE Linux Enterprise Server, Kali Linux for WSL, and Debian GNU/Linux.

Via Liliputing

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
8 Comments
oldest
newest
Dan C
Dan C
3 years ago

Are you saying the original WSL2, which is a windows feature instead of an app, does not get updated? Windows Update does not update core installed windows features??

zoobab
3 years ago

WSL is a cancer.

AnonymouseBastard
AnonymouseBastard
3 years ago

Why?

ms is no longer the enemy, there are far worse companies like fb and apple now

Mbus Roque
3 years ago

Yep!

---
---
3 years ago

I guess that means WSL1 is dead, which is kinda a shame as I don’t want Hyper-V.

Riccardo
3 years ago

Compatible for ARM cpu and all nvidia jetson devices?.

Boardcon Rockchip and Allwinner SoM and SBC products