If you want to use Linux on your PC without making a dual boot setup on your hardware, then you can do it through Windows Subsystem for Linux. WSL is a feature of Windows 11 that allows users to run Linux Distros on compatible hardware without any hassle. WSL basically kills the need for a traditional virtual machine as well as a dual boot system.ย
With WSL, you can not only run the Linux Distro but also use most of the tools, apps, and utilities provided by the OS. By default, it is disabled on all systems, and you will have to install Windows Subsystem for Linux on Windows 11. Letโs go through all the ways in which you can do it.ย
Ways to Install Windows Subsystem for Linux
WSL allows you to run Linux Distro on your Windows PC. There are multiple ways to install Windows Subsystem for Linux, but before we discuss the steps, you must enable the Virtual Machine Platform on your PC. To enable it, follow the steps given below-
- Open theย Start Menu, search forย Turn Windows Features On or Offย and pressย Enter.
- Now, check the checkbox next toย Virtual Machine Platform.ย
- Once done, click onย OK.
- You will be asked to restart your PC to save the changes.ย
Once you have enabled the Virtual Machine Platform, you can follow the different methods given below to install Windows Subsystem for Linux on Windows 11-
1. Through Command Prompt
The first way to install WSL on Windows 11 is through the Command Prompt. To do so, follow the steps given below-
- Press theย Windowsย key, and typeย CMDย in the Start Menu. Right-click on theย Command Promptย and then click onย Run as Administrator.ย
- When the UAC prompt appears on your screen, click onย Yes.
- In the CMD window, type and execute the following command-
-
wsl โinstall
-
- After executing the above command, close the Command Prompt and restart your PC.ย
- This will install WSL on your PC.ย
2. Through Windows Features
Another way to install Windows Subsystem for Linux is through the Windows Features. Hereโs how to do that-
- Open theย Start Menu, search forย Turn Windows Features On or Off,ย and open it.ย
- Here, search forย Windows Subsystem for Linux, and check the checkbox next to it.ย
- Click onย OKย once you are done with the above changes.
- After this, restart your PC to save the changes and complete the installation process.ย
3. Through Microsoft Store
You can also install the WSL through the Microsoft Store. To do so, follow the steps given below-
- Open theย Microsoft Storeย from the taskbar.ย
- Now, in the Microsoft Store, click on the search icon at the top search forย Windows Subsystem for Linux, and open it from the search results.ย
- Now, click on theย Getย button.ย
- You will get a UAC prompt; click onย Yes.
- Once done, this will start downloading the WSL on your PC and it will be installed on your device.ย
Ways to Install Linux Distro on Windows 11
Once you are done with installing the WSL on your system, you can continue with installing the Linux Distro. You can install Linux Distro on your Windows PC through the Command Prompt or the Microsoft Store.ย
1. Through Command Prompt
If you want to install Linux Distro on your Windows PC through Command Prompt, then follow the steps given below-
- Pressย Windows + R, typeย CMDย in the run dialog box and pressย Ctrl + Shift + Enterย keys together.ย
- In the CMD window, execute the following command-
-
wsl --list --online
-
- This will list all the Linux Distro that you can install on your Windows PC.ย
- After this execute the command given below to install the Linux Distro-
-
-
wsl --install -d DISTRO-NAME
-
Note-ย In the above command, replaceย DISTRO-Nameย with the name of the Linux Distro you want to install.ย
2. Through Microsoft Store
You can also install the Linux Distro from the Microsoft Store after you have enabled WSL. To do so, follow the steps given below-
- Press theย Windowsย key, and click on theย Microsoft Storeย to open it.ย
- Now, using the search bar at the top, search for the Linux Distro you want to install. For instance,ย Ubuntu.ย
- Click on the relevant Linux Distro from the search results, and then click onย Getย to install it.ย
How to Update WSL Kernel?
If you want to update the WSL kernel to the latest version, then you will be able to do it by following the steps given below-
- Click on theย Startย icon, search forย Command Prompt, and run it as administrator.ย
- Type the command given below and pressย Enter to execute it-
-
wsl โupdate
-
- This will download and install the latest WSL kernel update on your system.ย
Bottom Line
As discussed, there are several ways to install Windows Subsystem for Linux on Windows 11. You can continue with any of the methods listed above to get WSL. Also, we have listed the steps to get Linux Distro on Windows; you can follow the steps to install Linux Distro after you have installed WSL on your system.ย