Install Windows Subsystem for Linux (WSL)
May 17, 2021
Before We Start
Before we install WSL, if you want to get some information about WSL you can check this brief story.
WSL Installation
1. Open “PowerShell” as Administrator:
2. Enable WSL 1
Type the following command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
3. Enable WSL 2
Type the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
4. Restart Your Computer
You can restart with the following command:
Restart-Computer
5. Download WSL 2
Install the WSL 2 from Microsoft according to your device:
6. Set WSL Default Version to 2
Open PowerShell as Administrator:
wsl.exe --set-default-version 2