windows:notes:wsl
This is an old revision of the document!
Table of Contents
Information
- Windows Subsystem for Linux 1)
Prerequisites
Install
"DISM.exe" /Online /Enable-Feature /FeatureName:"VirtualMachinePlatform" /All /NoRestart
"DISM.exe" /Online /Enable-Feature /FeatureName:"Microsoft-Windows-Subsystem-Linux" /All /NoRestart
WSL2
"wsl.exe" --set-default-version 2
Update
"wsl.exe" --update
Scripts
MKDIR "%SystemDrive%\www\scripts\wsl"
"explorer.exe" "%SystemDrive%\www\scripts\wsl"
Updater
"notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat"
@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
"%SystemDrive%\www\scripts\wsl\Update.bat"
Other
"wsl.exe" --list --online
"wsl.exe" --list --all --verbose
"wsl.exe" --status
"wsl.exe" --unregister x
/var/www/wiki/data/attic/windows/notes/wsl.1763705655.txt.gz · Last modified: by Sean Rhone
