Skip to content
Picture of PTFM

PTFM

Install Linux for Windows Distros with PowerShell

Prerequisite: Enable Linux Subsystem – Instructions Here

Pick the distro you want to install from the list below:

Step 1: Open PowerShell and download

curl.exe -L -o <distro_name>.appx https://aka.ms/<distro_link>

Step 2: Install and launch

Add-AppxPackage .\<distro_name>.appx
wsl -d <distro_name>

Step 3: Update and Upgrade distro

sudo apt update && sudo apt upgrade -y     #debian

#or 

sudo yum upgrade -y    #fedora

That is it you have successfully downloaded a Linux for windows subsytem distro and installed it.

Share this post