Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Install WSL without Windows Store?

i have windown 10 enterprise,and i figured it out that this version dont have windows store how can i install linux subsystem (WSL) with ubuntu ?

like image 810
Bar Nuri Avatar asked Nov 25 '19 11:11

Bar Nuri


2 Answers

found a solution with powershell !

References

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

  • https://learn.microsoft.com/he-il/windows/wsl/install-on-server?redirectedfrom=MSDN

Powershell as Administrator

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

cd c:\

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing

Rename-Item ./Ubuntu.appx ./Ubuntu.zip
Expand-Archive ./Ubuntu.zip ./Ubuntu

cd ./Ubuntu

.\ubuntu1604.exe

$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";C:\Ubuntu", "User")
like image 51
Bar Nuri Avatar answered Dec 30 '22 02:12

Bar Nuri


I know this is an old post. But I found another way.

You can just run this on PowerShell or Command Prompt as Administrator:

wsl --install

If you want to see another distros:

wsl --list --online

And for install it, you can run (e.g. install Debian on WSL):

wsl --install -d Debian

For more information you can read this post.

like image 37
Yusuf Irzan Avatar answered Dec 30 '22 00:12

Yusuf Irzan