Update Windows SubSystem For Linux To WSL2 In Windows 10



Steps to update WSL to WSL2

Note that these steps for only who already enabled the WSL in windows.If you have not enabled the WSL in Windows 10, first enable it.See How to install Linux in Windows 10 using WSL

-Update your Windows system with latest update 2004 (OS build 19041)


-Run the below command in Powershell Windows

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

WSL



-Now restart the system

-Download the WSL2 Linux Kernel update from Official Page


-Run the package & install it. (if getting error , just right click > uninstall , then again install)

-Open PowerShell as Administrator & run below command

wsl --set-default-version 2

-Now run your any Linux distro

-In Powershell, run below command

wsl --list --verbose
OR
wsl -l -v


You will get the output as shown below & it will show the WSL version which your are currently using.


Post a Comment

0 Comments