How to Install WSL2 on Windows 11 (Windows Subsystem for Linux)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can install and enable wsl2 on your windows 11 operating system so let's get started and let's see how we can do it so first of all you can click on this search icon so just search for Turn Windows features on and off and here you will be able to see this result which says turn Windows features on or off so just click on this and it's going to open this kind of window which is going to show you some Windows features which are enabled on your Windows operating system and it's also going to show you some features which you can enable on your Windows operating system so once this window opens what you need to do is you can scroll down here and search for Windows machine platform and you need to search for Windows subsystem for Linux so WSL stands for Windows subsystem for Linux so you need to enable these two features so just select virtual machine platform and select windows subsystem for Linux and then just click on OK which is going to search for required files and it's going to apply all the changes and once you are done with all these changes you need to restart your Windows operating system so it says restart now yes I can restart my Windows operating system right away now once your Windows operating system restarts you can open a command prompt so just search for CMD and then open the command prompt and once command prompt opens you can write this command to check if WSL is installed on your system or not just write WSL and then you can either write for example hyphen hyphen status here and then press enter it's going to show you the status which is the default version for WSL which is enabled on your system and the other information if you want to update the WSL you can just write WSL update which is going to update the WSL on your Windows operating system also when you open the Microsoft store let me just open the Microsoft store right now you will be able to search on the Microsoft some Linux distribution for example Ubuntu here and you can see all the Ubuntu related distributions which are available in the Microsoft store which you can install on your windows 11 operating system and these subsystems are going to run on your Windows operating system and you can use them inside your Windows operating system now if in case when you give this status command and if it shows the version 1 instead of version 2 so default version is right now two in my case but if it shows version 1 that means WSL one is enabled and you need to set the version 2 as a default version in order to use wsl2 on your Windows operating system so for that the command is this one which is WSL hyphen hyphen set hyphen default hyphen version and if you want to set it to 1 which is the wsl1 version then write 1 here otherwise if you want to set it to 2 just write 2 here so let me just set it to 1 and we will check the status again and you can see it's version one and if you want to set it to 2 which in our case we require in order to set the WSL to version as the default then you need this command once again which is WSL hyphen hyphen set hyphen default hyphen version 2 and this is going to set the default version as wsl2 on your Windows operating system and that is what you want so you have to make sure that this version is set to 2. so that's how you can install wsl2 on your windows 11 operating system I hope you've enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge2
Views: 16,582
Rating: undefined out of 5
Keywords: wsl2 windows 11, install wsl windows 11, install wsl2, windows 10, install wsl2 windows 11 ubuntu, install linux on windows 11, windows subsystem for linux installation guide for windows 10, install wsl2 windows 11 powershell, windows subsystem for linux has no installed distributions.
Id: eId6K8d0v6o
Channel Id: undefined
Length: 4min 32sec (272 seconds)
Published: Tue Mar 14 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.