Install Windows Subsystem for Linux with one command

Windows 10 administrators who want to install WSL (Windows Subsystem for Linux) can now do so by running only one command from Windows 10 2004 and later.

Microsoft released this improvement in the preview version of Insider in October 2020 and now apparently released it with the latest updates to Windows 10 2004, 20H2 and 21H1.

See more articles from iGuRu.gr when you search for news on Google.

windows linux

The improvement is included in KB5004296 , which is an optional update for the listed versions of Windows 10. The update is cumulative. So the new feature will be released in a few days, via the August Patch Day. Optional updates are installed on systems only if administrators install them through Windows Update, or by searching for the update from the Microsoft Update Catalog website.

Microsoft has not yet mentioned the WSL improvement in the release notes. However, a post on the Microsoft Dev Blog by Craig Loewen confirms the inclusion of the new WSL installation option in Windows 10.

All you have to do is open a command prompt with administrator privileges and run the wsl.exe -install command to install WSL on your device. By default, Ubuntu will be installed on the device as it is the default Linux distribution.

The main advantage of the new method is that the installation is much faster. Before, you had to install all the required components separately on your device.

The following is an overview of the commands and for what purpose you can use them. Be aware that some commands can only run after you install WSL on your device.

wsl command


Google preferences

Leave a Comment

Your email address will not be published. Required fields are marked *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).