User Tools

Site Tools


windows:notes:wsl

This is an old revision of the document!


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

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

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