How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (2024)

  • To install WSL on Windows 11, open PowerShell or Command Prompt (admin), run the “wsl –install” command, and restart the computer.
  • The command will install WSL alongside the Ubuntu distribution.
  • To install WSL with a specific distro, run the “wsl –install -d DISTRO-NAME” command.
  • To install WSL from the Microsoft Store, enable the “Virtual Machine Platform” feature and then download the WSL app from the Store.

UPDATED 12/8/2023: On Windows 11, Microsoft simplified the installation process of the Windows Subsystem for Linux 2 (WSL) to only one command to download and install all the required components, which includes the virtual machine platform and Linux GUI apps and in this guide, I’ll teach you how to complete this process.

In addition, the command also installs the latest Ubuntu distro by default. If you prefer another Linux distribution, you can add an option to install any supported distributions in the command. Alongside the new quick and easy process, you will find another way to make it easier to update the kernel with only one command.

In this guide, I will teach you the easy steps to install the WSL platform on your computer. In addition, I will outline the steps to update the Linux kernel on Windows 11.

  • Install WSL on Windows 11
  • Install WSL with specific distro on Windows 11
  • Install WSL from Microsoft Store

Install WSL on Windows 11

To install WSL (Windows Subsystem for Linux) on Windows 11 from Command Prompt, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt (or PowerShell), right-click the top result, and select the Run as administrator option.

  3. Type the following command to install the WSL on Windows 11and press Enter:

    wsl --install

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (1)

  4. Restart your computer to finish the WSL installation on Windows 11.

  5. Continue with the Linux distro setup as necessary.

Once you complete the steps, the required Linux components will install automatically on Windows 11 and the latest version of the Ubuntu Linux distribution.

Update WSL kernel

To update the WSL kernel from Command Prompt on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to update the WSL kernel on Windows 11 and press Enter:

    wsl --update

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (2)

After you complete the steps, if an update is available, it will download and install on your computer.

Install WSL with specific distro on Windows 11

To install WSL with a specific distro on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to view a list of available WSL distros to install, and press Enter:

    wsl --list --online

    Quick note: You can install Ubuntu, Debian, Kali Linux, openSUSE, OracleLinux, and SUSE Linux Enterprise Server.

  4. Type the following command to install the WSL with a specific distro on Windows 11 and press Enter:

    wsl --install -d DISTRO-NAME

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (3)

    In the command, remember to replace “DISTRO-NAME” with the name of the distro to install on the device, such as Debian.

  5. Restart your computer to finish the WSL installation on Windows 11.

  6. Continue with the Linux distro setup as necessary.

Once you complete the steps, the Windows Subsystem for Linux components will install along with the distro of Linux you specified.

Install WSL from Microsoft Store

You can also download all the components wrapped into an app from the Microsoft Store. The benefit of using this approach is that the feature will run isolated from Windows 11, and updates are available through the Microsoft Store without waiting for the next version of the operating system to install the newest version.

To install WSL from the Microsoft Store, use these three steps:

1. Enable Virtual Machine Platform

  1. Open Start.

  2. Search for Turn Windows Features on or off and click the top result to open the app.

  3. Check the “Virtual Machine Platform” option.

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (4)

  4. Click the OK button.

  5. Click the Restart button.

After completing the steps, you can proceed with the steps to download the app from the Microsoft Store.

2. Install Windows Subsystem for Linux app

  1. Open the Windows Subsystem for Linux store page.

  2. Click the Get button.

  3. Click the Open button.

  4. Click the Get button again.

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (5)

3. Install Linux distro

  1. Open Microsoft Store app.

  2. Search for the Linux distro—for example, Debian.

  3. Click the Get button.

    How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (6)

  4. Click the Open button.

Once you complete the steps, WSL will install on Windows 11, including the support for Linux GUI apps and the Linux distribution.

Update December 8, 2023: This guide has been updated to ensure accuracy and reflect changes to the process.

How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech (2024)

FAQs

How to install Windows Subsystem for Linux (WSL) on Windows 11 - Pureinfotech? ›

Step 1: Start CMD with administrative privileges. Step 2:Execute "wsl --install" command. Step 3:Run "wsl -l -o" to list other Linux releases. Step 4:You can install your favorite Linux distribution, use "wsl --install -d NameofLinuxDistro."

How to install Windows Subsystem for Linux WSL on Windows 11? ›

To install the Linux Windows Subsystem (WSL) in Windows 11, follow these steps:
  1. Open the Windows Start menu and search for "Turn Windows features on or off".
  2. Click on the search result for "Turn Windows features on or off".
  3. Scroll down to the "Windows Subsystem for Linux" option and check the box next to it.

How to mount Linux file system using WSL on Windows 11? ›

Mount a Linux disk in Windows 10 or 11 using WSL 2
  1. Open PowerShell or Windows Command Prompt in administrator mode.
  2. Enter the “wsl --install“ command. Restart your machine after complete.
  3. You will need to create a user account and password for your newly installed Linux subsystem.

How to install WSL2 from wsl? ›

Upgrade version from WSL 1 to WSL 2

To change versions, use the command: wsl --set-version <distro name> 2 replacing <distro name> with the name of the Linux distribution that you want to update. For example, wsl --set-version Ubuntu-20.04 2 will set your Ubuntu 20.04 distribution to use WSL 2.

How do I install Linux on Windows 11? ›

Install Linux with Windows Subsystem for Linux

To install Linux on a Windows PC, use the install Linux command. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting "Run as administrator". Enter the Linux install command: wsl --install . Restart your machine.

How do I enable Windows subsystem in Linux WSL? ›

2. Enable the Windows Subsystem for Linux feature
  1. go to Start Menu, and search “Turn Windows feature on or off”
  2. select Windows Subsystem for Linux and click OK.
Feb 6, 2023

How to install Linux WSL2 on Windows 11? ›

Install WSL2 from Microsoft Store
  1. Open Start.
  2. Search for Turn Windows Features on or off and click the top result to open the page.
  3. Check the Virtual Machine Platform option.
  4. Click the OK button.
  5. Click the Restart button.
Nov 22, 2023

How do I access Linux files from Windows 11 wsl? ›

To access your Linux files in Windows, open the Ubuntu terminal and type explorer.exe . (include the punctuation mark). This will open the linux directory in Windows Explorer, with the WSL prefix “\wsl$\Ubuntu-18.04\home\your-username”. Now, you'll notice that Windows treats your Linux environment as a second network.

Where is wsl files in Windows 11? ›

You can access WSL2 Linux files from the network path \\wsl$\ . Enter it in the File Explorer address bar or any file open dialog. Here, <yourname> is the username you defined during installation. It's best to set this as the starting folder for the distro in Windows Terminal.

What is the command to install WSL2? ›

You can do this through the Microsoft Store or by using the wsl --install command.
  1. Open Microsoft Store.
  2. Search for your preferred Linux distribution (e.g., Ubuntu).
  3. Click “Install.”
Oct 18, 2023

What is the command to install WSL in Windows? ›

Install WSL command:

Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting “Run as administrator”, enter the wsl — install command, then restart your machine. This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux.

How to install Linux operating system step by step? ›

Installing Linux: A Step-by-Step Guide
  1. Step 1: Choose Your Linux Distribution. Before diving into the process of installation, you need to choose a Linux distribution that suits your needs. ...
  2. Step 2: Create a Bootable USB or DVD. ...
  3. Step 3: Boot from the USB/DVD. ...
  4. Step 4: Installing Linux (Ubuntu) ...
  5. Step 5: Post-Installation Setup.
Oct 26, 2023

What is window subsystem for Linux? ›

The Windows Subsystem for Linux (WSL) lets you run a Linux environment, including command-line tools and applications, directly on Windows, without the overhead of a traditional virtual machine or dual boot setup.

Does Windows 11 support WSL? ›

Is WSL 2 available on Windows 10 Home and Windows 11 Home? Yes. WSL 2 is available on all Desktop SKUs where WSL is available, including Windows 10 Home and Windows 11 Home.

Why is WSL not working on Windows 11? ›

When users upgrade their systems to Windows 11, the WSL functionality will be disabled. So, just enable this feature and it will return to normal state. Step 1: Press the Win + S key and type Turn Windows features on or off and press the Enter button.

Which version of WSL is on Windows 11? ›

WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later.

How to install Kali WSL on Windows 11? ›

Open PowerShell in administrator mode and run wsl --install Now go to https://www.kali.org/get-kali and select WSL. There should be a link that takes you to the Microsoft Store, where you can download Kali like any other app. Once the download completes, open the app. In the terminal, enter a username and password.

Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 6000

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.