Although you may know the Linux distro in question, you may still need to know the exact name and version to download and install it on your computer, and this is an easy task using the WSL command-line tool.
This guide will teach you the steps to create a list of all the Linux distros you can download and install from the Microsoft Store on WSL.
List Linux distros available to install on WSL
To see all of the WSL Linux distros you can download and install on Windows 11, use these steps:
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to view the Linux distros available you can download and install and press Enter:
wsl --list --onlineQuick tip: You can also write the command as wsl -l –online.
(Optional) Type the following command to install the latest Ubunut distro and press Enter:
wsl --install -d Ubuntu-22.04
Once you complete the steps, the command will output the distros name and friendly names as well as the versions available.
If you use the
WSL --install command without any arguments, the system will download and install the latest version of Ubuntu.
This guide focuses on Windows 11, but you can use the commands on Windows 10 as well.