Skip to content

aleksson/WSL-Docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

WSL Docs

Windows Subsystem for Linux

https://learn.microsoft.com/en-us/windows/wsl/install

Install (PowerShell) :

wsl --install

Offline installation

Info

To install WSL offline, you need to do these steps:

  • Download and install latest WSL MSI package from the GitHub releases page

  • Open a PowerShell window with admin privileges and run dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart to enable the Virtual Machine Platform optional component. You will likely need to restart your computer for this to take effect.

  • Install a distribution via a .wsl file. You can find URLs to download these files at DistributionInfo.json for your chosen distro.

Change WSL Version 2 <--> WSL 1:

wsl --set-version

wsl --set-version <Distribution Name> 2

ex: wsl --set-version Ubuntu-20.04 2

Change the installed distribution :

wsl --install -d <Distribution Name>

List available distributions:

wsl.exe --list --online

wsl -l -o

List installed Linux distributions and check WSL version:

wsl -l -v

Set the default Linux distribution :

wsl -s <DistributionName>

wsl --set-default <DistributionName>

ex : wsl -s Debian

About

Windows Subsystem for Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors