User Tools

Site Tools


windows:notes:wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows:notes:wsl [2025/11/21 01:14] Sean Rhonewindows:notes:wsl [2026/03/11 19:06] (current) Sean Rhone
Line 5: Line 5:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[windows;10|Windows 10 (21H2)]]+  * [[windows;10_ltsc_server|Windows 10 (21H2)]]
  
 ====== Install ====== ====== Install ======
  
-  "DISM.exe" /Online /Enable-Feature /FeatureName:"VirtualMachinePlatform" /All /NoRestart+  "%SystemRoot%\System32\Dism.exe" /Online /Enable-Feature /FeatureName:"VirtualMachinePlatform" /All /NoRestart
  
-  "DISM.exe" /Online /Enable-Feature /FeatureName:"Microsoft-Windows-Subsystem-Linux" /All /NoRestart+  "%SystemRoot%\System32\Dism.exe" /Online /Enable-Feature /FeatureName:"Microsoft-Windows-Subsystem-Linux" /All /NoRestart
  
 ====== WSL2 ====== ====== WSL2 ======
Line 17: Line 17:
   * https://learn.microsoft.com/en-us/windows/wsl/compare-versions#whats-new-in-wsl-2   * https://learn.microsoft.com/en-us/windows/wsl/compare-versions#whats-new-in-wsl-2
  
-  "wsl.exe" --set-default-version 2+  "%SystemRoot%\System32\wsl.exe" --set-default-version 2
  
 ====== Update ====== ====== Update ======
Line 23: Line 23:
 **** ****
  
-  "wsl.exe" --update+  "%SystemRoot%\System32\wsl.exe" --update
  
-====== Scripts ======+====== openSUSE Tumbleweed ======
  
-  MKDIR "%SystemDrive%\www\scripts\wsl" +  * [[windows;opensuse_tumbleweed_wsl|Notes]]
- +
-  "explorer.exe" "%SystemDrive%\www\scripts\wsl" +
- +
-===== Updater ===== +
- +
-  "notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" +
- +
-<code> +
-@echo off +
- +
-"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' clean --all +
-"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services +
-"wsl.exe" --distribution openSUSE-Tumbleweed --user root -- '/usr/bin/zypper' --non-interactive dist-upgrade --auto-agree-with-licenses --allow-downgrade --allow-name-change --allow-arch-change --allow-vendor-change +
- +
-"wsl.exe" --distribution openSUSE-Tumbleweed -- '/usr/bin/sync' +
- +
-:: End</code> +
- +
-  "%SystemDrive%\www\scripts\wsl\Update.bat"+
  
 ====== Other ====== ====== Other ======
  
-  "wsl.exe" --list --online+  "%SystemRoot%\System32\wsl.exe" --list --online
  
-  "wsl.exe" --list --all --verbose+  "%SystemRoot%\System32\wsl.exe" --list --all --verbose
  
-  "wsl.exe" --status+  "%SystemRoot%\System32\wsl.exe" --status
  
-  "wsl.exe" --unregister x+  "%SystemRoot%\System32\wsl.exe" --unregister x
  
/var/www/wiki/data/attic/windows/notes/wsl.1763705655.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki