Home windows 10 directors who need to set up WSL, the Home windows Subsystem for Linux, can accomplish that working a single command on Home windows 10 variations 2004 and later.
Microsoft launched the enhancement in Insider preview builds again in October 2020, and has now pushed the advance in latest updates for Home windows 10 variations 2004, 20H2 and 21H1.
The enhancement is included in KB5004296, which is an elective replace for the listed variations of Home windows 10; since updates are cumulative, the brand new performance will likely be launched on the August 2021 Patch Day to all gadgets through Home windows Updates. Non-obligatory updates are put in solely on techniques if directors turn out to be energetic, as an illustration by looking for for the replace or downloading it from the Microsoft Replace Catalog web site.
Microsoft makes no point out of the WSL enchancment within the launch notes. A put up on Microsoft’s Dev Weblog by Craig Loewen confirms the inclusion of the brand new set up choice for WSL on Home windows 10 model 2004 and better.
All it takes is to open an elevated command immediate and run the command wsl.exe –install to put in WSL on the machine. By default, Ubuntu will likely be put in on the machine as it’s the default Linux distribution if no distribution is specified.
The principle benefit of the brand new technique is that the set up is way sooner. Beforehand, you needed to set up all required parts individually on the machine.
Right here is an summary of the instructions and what you might use them for. Be aware that some instructions can solely be run after WSL has been put in on the machine.
- Choose Begin.
- Kind cmd.exe
- Choose Run as administration.
- wsl.exe –install
- installs the Ubuntu distribution and WSL on the machine.
- wsl –list –online
- lists all out there Linux distributions that you could be set up utilizing the wsl command. At present, these are:
- Ubuntu Ubuntu
- Debian Debian GNU/Linux
- kali-linux Kali Linux Rollin
- openSUSE-42 openSUSE Leap 42
- SLES-12 SUSE Linux Enterprise Server v12
- Ubuntu-16.04 Ubuntu 16.04 LTS
- Ubuntu-18.04 Ubuntu 18.04 LTS
- Ubuntu-20.04 Ubuntu 20.04 LTS
- wsl –install -d <DistroName>
- installs the chosen distribution. Exchange <DistroName> with the identify of the distribution. Can be utilized to put in further distributions as effectively.
- wsl –update
- updates the WSL Linux kernel manually.
- wsl –update rollback
- rolls again to the earlier WSL kernel model.
- wsl –status
- shows normal details about the standing of the Home windows Subsystem for Linux set up.
- wsl –help
- shows the checklist of command parameters.
The command will set up model 2 of WSL on the machine. You’ll be able to test that by working wsl with the standing parameter after a profitable set up. In the event you see model 2, the second model of the Home windows Subsystem for Linux is put in.
The brand new instructions make it simpler to put in WSL on a Home windows 10 machine. The one command lacking is uninstall, as you can’t use the command line device to take away a WSL set up from the machine once more. Microsoft didn’t point out if the device will even be included in Home windows 11, nevertheless it appears possible.
Now You: have you ever used WSL on Home windows If not, would you?