| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| windows:opensuse_tumbleweed_wsl [2025/11/21 01:06] – Sean Rhone | windows:opensuse_tumbleweed_wsl [2026/02/11 07:47] (current) – [Update] Sean Rhone |
|---|
| * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed)) | * Tumbleweed ((https://en.opensuse.org/Portal:Tumbleweed)) |
| * WSL ((https://en.opensuse.org/openSUSE:WSL)) | * WSL ((https://en.opensuse.org/openSUSE:WSL)) |
| | |
| | openSUSE Tumbleweed |
| |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[windows;10|Windows 10 (21H2)]] | * [[windows;10_ltsc_server|Windows 10 (21H2)]] |
| * [[windows;notes;wsl|WSL2]] | * [[windows;notes;wsl|WSL2]] |
| |
| * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ | * https://download.opensuse.org/repositories/Virtualization:/WSL:/instarball/openSUSE_Tumbleweed_images/ |
| |
| "wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251119.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch | "wsl.exe" --install --from-file "%UserProfile%\Downloads\openSUSE-Tumbleweed-20251120.x86_64.tar.xz" --name "openSUSE-Tumbleweed" --no-launch |
| |
| "wsl.exe" --set-default openSUSE-Tumbleweed | "wsl.exe" --set-default openSUSE-Tumbleweed |
| | |
| | ===== Initial Setup ===== |
| |
| "wsl.exe" --distribution openSUSE-Tumbleweed | "wsl.exe" --distribution openSUSE-Tumbleweed |
| "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown | "wsl.exe" --distribution openSUSE-Tumbleweed --shutdown |
| |
| ====== Update ====== | ====== Scripts ====== |
| | |
| | MKDIR "%SystemDrive%\www\scripts\wsl" |
| | |
| | "explorer.exe" "%SystemDrive%\www\scripts\wsl" |
| | |
| | ===== Updater ===== |
| | |
| | "notepad.exe" "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| | |
| | <code> |
| | @echo off |
| | |
| | TITLE openSUSE Updater |
| | CD "%Temp%" |
| | |
| | "wsl.exe" --update |
| | |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' clean --all |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --user root -- '/usr/bin/zypper' --non-interactive refresh --force --services |
| | "wsl.exe" --distribution openSUSE-Tumbleweed --cd "/tmp" --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 --cd "/tmp" -- '/usr/bin/sync' |
| | |
| | :: End</code> |
| | |
| | "%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat" |
| | |
| | ====== Task Scheduler ====== |
| | |
| | ===== Update ===== |
| |
| **** | * Daily ''05:45:00 AM'' |
| |
| "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 | SCHTASKS /Create /SC "DAILY" /TN "openSUSE Update" /TR "'%SystemDrive%\www\scripts\wsl\openSUSE Updater.bat'" /ST "05:45" /F |
| |