Replace distro-name with the name of the distro you want to install, for example, debian.
That will list all Linux distros available for download. Enter the following command: wsl -online -list.Open an elevated Windows Terminal instance.If default Ubuntu is not your cup of tea, there is a separate command that allows you to specify a preferred Linux distro during WSL installation. Install WSL in Windows 11 with a specific Linux distro
HOW TO INSTALL LINUX TERMINAL ON WINDOWS 10 UPDATE
Tip: To update the Linux kernel in Windows 11, launch Windows Terminal with Administrator privileges and enter wsl -update. That is how you install Windows Subsystem for Linux in Windows 11. Wait for Windows 11 to install WSL 2.0.That includes all the steps that previously required separate commands, such as installing a virtual machine platform, Windows Subsystem for Linux, WSL Kernel, etc. Enter the following command: wsl -install. When is done, we click on the Start Menu and see our Linux distribution available, then we click on the distro icon to launch the setup.The setup process will begin and you can relax until it's finished. Right-click it and select Run as Administrator. Once this is in place, open up PowerShell and enter this command: wsl -install. Open the Start menu and find Windows Terminal.But you can install any distro of your choice. Note: By default, Ubuntu will be installed. Next, open your command prompt and provide the installation commands. Install WSL in Windows 11 with a specific Linux distro Install Windows Subsystem for Linux in Windows 11 Check the option Windows Subsystem for Linux.