TOOL » WINDOWS » WSL
Install
Enable Windows Subsystem for Linux
Open PowerShell and run the following command:
powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartFor WSL 2, continue with:
powershell
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartThen install the Linux kernel package.
Finally set WSL 2 as default with:
shell
wsl --set-default-version 2Managing WSL version
shell
wsl --list --verbose
wsl --set-version <distribution name> <versionNumber>Manual Linux install
Download the Appx file from the Microsoft Store.
| Distro | Link |
|---|---|
| Ubuntu 18.04 | aka.ms/wsl-ubuntu-1804 |
| Ubuntu 20.04 | aka.ms/wslubuntu2004 |
Then install it with PowerShell.
powershell
Add-AppxPackage .\Ubuntu.appxThe linux icon will appear on the menu. It may be necessary to restart the computer for WSL to work properly.
For newer versions, use:
| Command | Description |
|---|---|
wsl -l -o | List available distributions |
wsl -l | List usable distributions |
wsl --install | Install distribution |