- Required packages: 7zip-full, squashfs-tool
- Pre-installed "supported" distributions from Windows Store.
- root user access in WSL.
- Login root user in that pre-installed WSL distribution and
cd /root. - Download latest Arch Linux ISO.
- Extract
arch/x86_64/airootfs.sfsfile from it. - Extract files from airootfs.sfs:
unsquashfs -d temp airootfs.sfs - Make GZIP tarball from those extracted files:
tar -czf ../arch.tar.gz --hard-dereference * - Install it with
wsl.exe --importcommand.
- Allow required binaries e.g.
pacmanin Windows Firewall. - Remove or rename
/etc/resolv.conffile. - Try to update packages with
pacman -Syyuand allow all required PGP keys. - Initialize keyring for pacman:
pacman-key --init - Reload the default keys (Source):
pacman-key --populate - Now install, update or upgrade packages.