본문 바로가기
개발환경

[CE] WSL 완전제거하기

by ds31x 2025. 3. 6.

WSL 완전 제거 방법

  1. Linux 배포판 등록 해제: 이 과정은 해당 distribution(배포판)의 모든 데이터를 삭제하므로, 중요한 데이터는 미리 백업해야 함.
    • Command Prompt(또는 PowerShell)을 열고 wsl -l -v 명령어로 설치된 distribution(배포판) list를 확인.
    • 각 distribution(배포판)을 wsl --unregister <배포판_이름> 명령어로 등록 해제.
  2. WSL 관련 App(앱) 제거:
    • 설정 > 앱 > 앱 및 기능으로 이동.
    • "Windows Subsystem for Linux update" 또는 기타 WSL 관련 구성 요소를 찾아 제거.
      • 다음과 같은 구성요소가 있다면 제거한다.
        • "Windows Subsystem for Linux update"
        • "WSLg Preview"
  3. Windows 기능 비활성화:
    • 제어판 > 프로그램 및 기능 > Windows 기능 켜기/끄기로 이동.
    • "Windows Subsystem for Linux"와 "Virtual Machine Platform" 체크를 해제하세요.
    • 확인을 누르고 컴퓨터를 reboot.

제거 후,
C:\Users<사용자명>\AppData\Local\Packages\LocalState\
경로에서 관련 가상 하드 디스크 파일이 삭제되었는지 확인


WSL 재설치하기

https://dsaint31.tistory.com/513

 

[WSL] Install WSL (Windows Subsystem for Linux)

[WSL] Install WSLPre-requirements.windows 10 이상 : ( version 2004 , build 19041 이상이어야 함.)windows 11 권장 : ( gpu 기능 등 가능... )Tensorflow나 Pytorch등에서 GPU가속을 제대로 쓰려면, build 20150 이상은 되어야 함

dsaint31.tistory.com