Image

wsl

Setup without Store

WSL install from CLI

2 min read
Last update: November 28, 2021

If don't want to install anything for Store, you can choose some other options.

From CLI

Find list of all distros

wsl --list --online

Lists all available Linux distributions that you may install using the wsl command. Currently, these are:

  • Ubuntu: Ubuntu
  • Debian: Debian GNU/Linux
  • kali-linux: Kali Linux Rollin
  • openSUSE-42: openSUSE Leap 42
  • SLES-12 SUSE: Linux Enterprise Server v12
  • Ubuntu-16.04: Ubuntu 16.04 LTS
  • Ubuntu-18.04: Ubuntu 18.04 LTS
  • Ubuntu-20.04: Ubuntu 20.04 LTS

Install your distro

wsl --install -d <DistroName>

With appx

You can download any distro in .appx format to install it.

Manual

You can manually download distros from docs.microsoft.com.

CommandLine

To find distro name, check link of each distro on docs.microsoft.com, some examples here:

  • wslubuntu2004
  • wsl-debian-gnulinux

PowerShell

Example with Ubuntu 20.04

Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing

cURL

Example with Ubuntu 20.04

curl.exe -L -o Ubuntu.appx https://aka.ms/wslubuntu2004

Install .appx

Add-AppxPackage .\Ubuntu.appx

More