How To Install WSL on Windows 10 Using a Single Command

Earlier this year, Microsoft started testing support for Linux GUI apps on Windows 10. the corporate implemented it through Windows Subsystem for Linux GUI (WSLg) on Insider builds. Alongside this exciting development, Microsoft also streamlined the installation process of WSL for Insiders with one install command. The Redmond giant has now brought the WSL installation command to older Windows 10 builds.

Install WSL on Windows 10 with one Command

You can use the ‘wsl –install’ command to put in Windows Subsystem for Linux on your computer. Available only on Insider builds thus far , Microsoft has now ported the command to Windows 10 version 2004 and better .

“The process will automatically enable the WSL optional features required, install the Ubuntu distribution by default, and install the newest WSL Linux kernel version onto your machine. When it’s completed and you restart your machine, your distribution will start after you boot up again, completing the installation,” said Craig Loewen, Program Manager, Windows Developer Platform.

You can also use the command ‘wsl –list –online’ to ascertain the list of obtainable Linux distributions. Moreover, the command ‘wsl –update’ allows you to update your WSL Linux kernel manually. Other commands include ‘wsl –update rollback’ to roll back to a previous WSL Linux kernel version and ‘wsl –status’ to ascertain the small print of your current WSL installation.

To start using the new WSL command, confirm you’ve got updated Windows 10 from Settings -> Updates and Security -> Check for updates. it’s also available as an optional update with the version KB5004296.

While getting started with the command is fairly straightforward, you’ll check our guide running GUI-based Linux programs on Windows 10 to ascertain the command in action. As for WSLg, it’s already survive Windows 11. you’ll follow an equivalent steps to run Linux GUI apps on Windows 11.

Leave a Reply

Your email address will not be published.