Microsoft simplifies WSL installation on Windows 10

In the latest internal test version of Windows 10 (Windows 10 Insider Preview Build 20150), Microsoft added two new commands for the installation and kernel upgrade of WSL, wsl.exe — install and wsl.exe –update. Windows 10 users can run the commands above through the command line tool or Windows Terminal.

Microsoft simplifies WSL installation on Windows 10

Running wsl.exe on a machine that has not turned on WSL –install command will enable WSL optional components and virtual machine platform optional components and prompt the restart of the machine. Installing WSL in this way will make WSL2 the default version of the newly installed WSL, because Microsoft finds that most internal testusers use wSL2 exactly.

Microsoft also said it plans to add support for a Linux distribution that automatically installs WSL, such as Ubuntu, for this command.

The wsl.exe–update command is used to manage updates to the WSL kernel and provides several options:

wsl.exe–update stomin manages kernel updates. If no options are specified, the command will be upgraded to the latest kernel version

wsl.exe –update–status view update status to show the kernel version currently in use by WSL and when the last update was

wsl.exe –update –rollback rolls back to the last Linux kernel version used

In addition to the above updates, the New Version of Windows 10’s internally measured WSL adds support for GPU computing, which means that Linux binaries can leverage GPU resources to run larger compute tasks in WSL for details.