>wsl --list --online
다음은 설치할 수 있는 유효한 배포 목록입니다.
'wsl --install -d <배포>'를 사용하여 설치하세요.

NAME                                   FRIENDLY NAME
Ubuntu                                 Ubuntu
Debian                                 Debian GNU/Linux
kali-linux                             Kali Linux Rolling
Ubuntu-18.04                           Ubuntu 18.04 LTS
Ubuntu-20.04                           Ubuntu 20.04 LTS
Ubuntu-22.04                           Ubuntu 22.04 LTS
OracleLinux_8_5                        Oracle Linux 8.5
OracleLinux_7_9                        Oracle Linux 7.9
SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4
openSUSE-Leap-15.4                     openSUSE Leap 15.4
openSUSE-Tumbleweed                    openSUSE Tumbleweed

wsl 용 CentOS 는 마이크로소프트 스토어에서 찾을 수 없었다.

https://github.com/mishamosher/CentOS-WSL

 

GitHub - mishamosher/CentOS-WSL: A GitHub Actions automated CentOS RootFS to use with WSL

A GitHub Actions automated CentOS RootFS to use with WSL - GitHub - mishamosher/CentOS-WSL: A GitHub Actions automated CentOS RootFS to use with WSL

github.com

 위 사이트에서 받아서 사용하는 것 같다.

설치할 버전의 CentOS 압축 파일을 받자. CentOS7.zip 을 받았다.

압축을 풀고 CentOS7.exe 를 실행하면 된다. ( wsl 설정은 끝났다고 가정한다. )

설치가 끝나면 ext4.vhdx 라는 가상 디스크가 보인다.

> wsl -l
Linux용 Windows 하위 시스템 배포:
Ubuntu(기본값)
CentOS7
Ubuntu-20.04

wsl -l 로 목록을 보면 CentOS7 이 보인다.

>wsl -d CentOS7
# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

-d 옵션으로 CentOS7 을 선택해 실행하면 bash 를 볼 수 있다.

https://linuxconfig.org/how-to-check-centos-version

/etc/centos-release 파일을 통해 접속한 centos 버전을 확인할 수 있다.

728x90

+ Recent posts