Microsoft on Monday released a preview of Windows Subsystem for Linux (WSL), which is now available in the Microsoft Store as a store application for Windows 11 machines.
For those unaware, WSL is a feature of the Windows operating system that enables you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows, alongside your traditional Windows desktop and apps.
The two biggest highlights of the change are: Users can get access to WSL features faster, and they donโt have to worry about changing their Windows version when getting the latest WSL updates.
โInstalling WSL through the store will allow you to get the latest WSL updates and features faster, and without needing to modify your Windows version. This is the exact same WSL that you know and love, all that weโve changed is where it gets installed and updated from. Weโve created this as an initial preview to help ensure quality before making this generally available,โ Microsoftโs Craig Loewenย writesย in the announcement post.
To date, WSL has been installed as an optional component inside of Windows, which means that you need go to the โTurn Windows Features on or offโ dialogue to enable it, requiring you to restart your machine. The actual binaries that make up WSLโs logic in that optional component are part of the Windows image, and are serviced and updated as part of Windows itself.
โThis change moves those binaries from being part of the Windows image, to instead being part of an application that you install from the Store. This decouples WSL from your Windows version, allowing you to update through the Microsoft Store instead,โ Craig added.
โSo now once new features like GUI app support, GPU compute, and Linux file system drive mounting are developed, tested and ready for a release you will get access to it right away on your machine without needing to update your entire Windows OS, or going to Windows Insider preview builds.โ
Below are some of the new features in WSL Preview on the Microsoft Store:
- WSLg is now bundled as part of the WSL app!
- Newย wsl.exeย –mountfeatures!
- Addย –mountย –vhdto make mounting VHD files easier.
- Implement filesystem detection forย wslย –mount. This change implements filesystem type detection if noย –typeis specified when usingย wsl.exeย –mount.
- Addย –namefeature toย wslย –mount. This change adds support for optionally naming a mountpoint when mounting a disk through WSL.
- Updated Linux kernel to 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ย –installto not require theย –distribution This change switchesย wslย –installย to not require theย –distributionย argument but maintains support to avoid breaking existing scripts.
- Addedย wsl.exeย –versioncommand which displays relevant version information
How To Install And Use WSL In The Microsoft Store
In order to install and use WSL in the Microsoft Store, you need to be running Windows 11 build or higher (Windows build number 22000 or higher), and have the Virtual Machine Platform optional component enabled:
Run:ย dism.exeย /online /enable-feature /featurename:VirtualMachinePlatform /allย in an elevated PowerShell prompt
Click onย this linkย to go the WSL store page and clickย Installย to install WSL, and then you canย install a Linux distro of your choiceย to start using it.
If you already have the in-Windows version of WSL installed, then you canย install the WSL preview from the Store, too, and run it simultaneously with the version that came with Windows.