所以我想知道如何从powershell卸载linux,因为每次我试图更新时,我都会通过powershell安装子系统linux更新,这让我很紧张。有人能帮我把它去掉吗?
命令我用在Powershell(管理员)
Invoke-WebRequest -Uri https://wsldownload.azureedge.net/Ubuntu_1604.2019.523.0_x64.appx -OutFile Ubuntu.appx -UseBasicParsing
现在我想卸载这个,可能用了不同的命令但我肯定用了类似的
如果您安装了带有WSL的linux发行版,它将使您能够管理您的发行版。
运行wsl --list
查找您的发行版名称。然后运行wsl --unregister <DistributionName>
卸载你的发行版。
这个链接有这个命令的说明:https://learn.microsoft.com/en-us/windows/wsl/wsl-config#unregister-and-reinstall-a-distribution