Skip to content

Instantly share code, notes, and snippets.

@sheyu921
Last active July 25, 2024 02:05
Show Gist options
  • Save sheyu921/a8e94cf03015be178d3c38c9dfcd8601 to your computer and use it in GitHub Desktop.
Save sheyu921/a8e94cf03015be178d3c38c9dfcd8601 to your computer and use it in GitHub Desktop.
Copy the wsl package
wsl -l -v
wsl -t <DistroName>
wsl --export <DistroName> <PathToTarArchive>
wsl --unregister <DistroName>
wsl --import <DistroName> <PathToDistroNewDirectory> <PathToTarArchive>
<DistroName>=ubuntu
ubuntu.exe config --default-user xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment