Microsoft has simplified the Linux subsystem installation (WSL) command for the new Windows 11. The command will install the latest Ubuntu distribution by default, but if you want a different Linux distribution, you can choose to use WSL2. This guide will explain how to install the WSL platform, select the correct Linux distribution, and update the Linux kernel in Windows 11.
Install WSL from Ubuntu on Windows 11
Search for “CMD” and right-click on the command line, then select ” Run as administrator “.
At the command prompt, enter the below command. After completing the process, restart your PC, and the required Linux components will be automatically installed on Windows 11. In addition, the latest version of Ubuntu will be installed.
-
wsl --install
Install WSL with a specific distribution on Windows 11
If you need a different Linux distribution, then the WSL2 command includes browsing and selecting. Run Command Prompt as Administrator and enter the below commands:
- wsl –list –online
- Remember the NAME of the Linux you need.
- wsl –install -d NAME
- Reboot your PC.
Updating the WSL core on Windows 11
Run an elevated command prompt and enter the below command to update the WSL core to the latest version:
-
wsl --update
Remove Linux Subsystem and Distributions on Windows 11
To uninstall WSL in Windows 11, open Settings and go to Apps and Features. You will find installed Subsystem and Linux distributions, which can be removed by clicking on the ellipsis.
Next, uninstall programs through the “Control Panel”; on the left, select ” Turn Windows features on or off. ” In the new window, find ” Windows Subsystem for Linux ” and uncheck the box, then click OK and restart your PC.