微软在线gihtub仓库没有发现centos,在github发现有分享的zip可以导入

env

  • window11-v10.0.22621.819

1.centos

CentOS QCOW2 cloud images converted to RootFS for WSL

2.download centos-x.zip

3.unzip && execute

open powershell

./Centos7.exe

4.view

//查看已安装的系统
wsl -l -v

//启动并进入CentOS7
wsl -d CentOS7

//设置默认系统
wsl -s CentOS7

//删除系统
wsl --unregister CentOS7

//进入默认系统
wsl
wsl ~