Как удалить подсистему linux в windows 11

Все способы:

  • Удаление дистрибутивов Linux
    • Шаг 1: Отмена установки дистрибутивов Linux в WSL
    • Шаг 2: Деинсталляция приложений
  • Удаление связанных с WSA компонентов Win 11
    • Вариант 1: «Компоненты Windows»
    • Вариант 2: Консоль
  • Вопросы и ответы: 0

Удаление дистрибутивов Linux

Первым шагом на пути отказа от использования «Подсистемы Windows для Linux» в среде ОС от Microsoft, в том числе одиннадцатой версии, должна стать деинсталляция развёрнутых на ПК дистрибутивов UNIX-систем. Полное удаление любого адаптированного для функционирования через WSA дистрибутива Линукс выполняется в два этапа, и далее продемонстрировано, как это сделать относительно всех последних без исключения.

Шаг 1: Отмена установки дистрибутивов Linux в WSL

Сначала удаляем созданные Linux в подсистеме Windows 11 данные, созданную первой файловую систему, а также отменяем регистрацию всех Linux-дистрибутивов в WSL. Фактически всё это осуществляется путём запуска единственной консольной команды.

  1. Обязательно с повышенными привилегиями («от имени Администратора») открываем «Терминал» либо классическую «Командную строку» Windows 11. (Первое выполнимо, к примеру, из контекстного меню элемента «Пуск» на «Панели задач» операционки,
    Как удалить WSL в Windows 11 02

    а второе проще всего реализовать средствами системного «Поиска».)

    Как удалить WSL в Windows 11 03

    Читайте также:
    Как открыть приложение «Терминал» в Windows 11
    Запуск «Командной строки» от имени Администратора в Windows 11

  2. Сначала определяем, какие (и сколько) дистрибутивы Linux установлены в подсистеме WSL, а также выясняем их точные имена. С такой целью отправляем на выполнение команду:

    wsl -l -v

  3. Как удалить WSL в Windows 11 04

  4. Чтобы деинсталлировать отдельный дистрибутив Linux из «Подсистемы Виндовс для Линукс», вводим в консоль следующее указание:

    wsl --unregister ИМЯ_ДИСТРИБУТИВА

    Как удалить WSL в Windows 11 05

    (ИМЯ_ДИСТРИБУТИВА заменяем на точное значение такового в полученном по результату выполнения предыдущего пункта этой инструкции перечня)

  5. Как удалить WSL в Windows 11 05

  6. Нажав «Enter» на клавиатуре, отправляем введённую команду на выполнение, после чего дожидаемся завершения процедуры «Отмена регистрации» – в консоли появится оповещение «Операция успешно завершена».
  7. Как удалить WSL в Windows 11 06

  8. Повторяем процедуру отмены регистрации и удаления данных относительно всех других добавленных в подсистему дистрибутивов Линукс.
  9. Как удалить WSL в Windows 11 07

  10. Чтобы убедиться в том, что все дистрибутивы исключены из «Подсистемы Windows для Linux», по завершении выполнения вышеуказанного повторно запускаем команду wsl -l -v.
  11. Как удалить WSL в Windows 11 08

    Рассмотренная выше операция очистит WSL непосредственно от данных Линукс-дистрибутивов, однако их инсталляционные пакеты останутся на компьютере (и будут доступны для развёртывания, к примеру, путём обычного открытия из «Главного меню» Windows 11), продолжат занимать место на диске, и в целом отображаться в интерфейсе ОС от Microsoft как установленные, поэтому не стоит игнорировать выполнение следующего пункта настоящих рекомендаций.

Шаг 2: Деинсталляция приложений

С целью полного избавления от следов всех ранее эксплуатируемых вариантов Линукс в Виндовс 11 необходимо деинсталлировать приложения дистрибутивов, через которые они и были интегрированы в «Подсистему Виндовс для Линукс». Это выполняется точно так же, как удаление любого полученного из Майкрософт Стор софта, а практически реализуется минимум двухвариантно.

Читайте также: Удаление встроенных и полученных из Microsoft Store приложений в Windows 11

Вариант 1: «Параметры»

  1. Открываем (к примеру, нажав «Win»+«X» или вызвав соответствующий пункт из меню дополнительных функций кнопки «Пуск» на «Панели задач») «Параметры» Windows 11.
  2. Как удалить WSL в Windows 11 09

  3. Из меню слева окна «Параметров» ОС переходим в раздел «Приложения», затем открываем «Установленные приложения».
  4. Как удалить WSL в Windows 11 10

  5. Находим блок с наименованием деинсталлируемого дистрибутива Линукс в перечне доступного в Виндовс 11 софта,
    Как удалить WSL в Windows 11 11

    кликаем по расположенным в его правой части трём точкам,

    Как удалить WSL в Windows 11 12

    выбираем «Удалить» в отобразившемся меню.

  6. Как удалить WSL в Windows 11 13

  7. Подтверждаем свои намерения, кликнув «Удалить» в следующем меню,
    Как удалить WSL в Windows 11 14

    затем ожидаем завершения деинсталляции софта.

  8. Как удалить WSL в Windows 11 15

  9. Повторяем выполнение шагов №№3-4 выше относительно всех дистрибутивов Linux, которые обнаруживаются в перечне инсталлированных в Виндовс 11 приложений.
  10. Как удалить WSL в Windows 11 16

Вариант 2: Диспетчер пакетов Windows

Те, кто для решения различных задач в Windows предпочитают использовать консоль, могут выполнить удаление приложений Linux при помощи программы командной строки «Диспетчер пакетов» («winget»). Один из возможных алгоритмов реализации такого подхода:

  1. От имени Администратора открываем «Терминал» (в примере далее) или классическую «Командную строку» Виндовс.
  2. Как удалить WSL в Windows 11 17

  3. Отправляем на выполнение команду вывода списка установленных в операционке приложений:

    winget list

    Как удалить WSL в Windows 11 18

    Немного ожидаем, пока перечень софта будет сформирован и представлен в виде ответа консоли.

  4. Как удалить WSL в Windows 11 20

  5. В столбце «Имя» находим наименование удаляемого из системы приложения-дистрибутива Linux, запоминаем его. (Возможно, удобнее и проще будет скопировать Имя в буфер обмена – выделяем текстовое значение параметра мышкой, нажимаем «Ctrl»+«C» на клавиатуре ПК.)
  6. Как удалить WSL в Windows 11 22

  7. Вводим команду удаления приложения-дистрибутива Линукс из системы, её синтаксис следующий (ИМЯ_ДИСТРИБУТИВА_LINUX заменяем на полученное на шаге выше значение «Имя», вставка данных в консоль выполнима путём нажатия клавиатурной комбинации «Ctrl»+«V»):

    Get-AppxPackage *ИМЯ_ДИСТРИБУТИВА_LINUX* | Remove-AppxPackage

    Как удалить WSL в Windows 11 23

    Нажимаем «Ввод» на клавиатуре, чтобы запустить выполнение указания, ожидаем окончания инициированной операции – в консоли отобразиться приглашение к вводу следующих команд.

  8. Как удалить WSL в Windows 11 24

  9. Повторяем процедуру деинсталляции относительно всех демонстрируемых перечнем-ответом на команду winget list дистрибутивов Linux.
  10. Как удалить WSL в Windows 11 25

Удаление связанных с WSA компонентов Win 11

По сути, после деинсталляции всех дистрибутивов Линукс по предложенным выше инструкциям каких-либо видимых признаков присутствия WSA в Windows 11 не останется, и если есть вероятность, что подсистема потребуется когда-нибудь в будущем, далее можно ничего не предпринимать. Если же целью является действительно полное удаление «Подсистемы Windows для Linux» из состава ОС, выполняем одну из двух следующих инструкций.

Вариант 1: «Компоненты Windows»

Вероятно, наиболее привычный и удобный с точки зрения пользователей Windows метод включения и удаления необязательных компонентов операционки, включая WSA, подразумевает эксплуатацию специализированного элемента «Панели управления».

Читайте также: Включение или отключение компонентов Windows 11

  1. Открываем окно «Панели управления» «Компоненты Windows». Это выполнимо различными путями, далее один из них:
    • Вызываем (из контекстного меню кнопки «Пуск» на «Панели задач» или нажав «Win» + «R» на клавиатуре) системную оснастку «Выполнить».
    • Как удалить WSL в Windows 11 27

    • Вводим в поле «Открыть» отобразившегося окошка следующую команду, после чего кликаем «ОК» или нажимаем «Ввод» на клавиатуре:

      OptionalFeatures

      Как удалить WSL в Windows 11 28

      В результате откроется требуемый в нашем случае инструментарий:

      Как удалить WSL в Windows 11 29

  2. Прокручиваем список записей в окне «Компоненты Windows»,

    Как удалить WSL в Windows 11 30

    снимаем галочку с чекбокса слева пункта «Подсистема Windows для Linux».

  3. Как удалить WSL в Windows 11 31

  4. При желании (когда не требуется для функционирования другого, отличного от WSA софта) можно удалить также «Платформу для виртуальной машины» — убираем отметку с обозначающего её чекбокса.
  5. Как удалить WSL в Windows 11 32

  6. Кликаем «ОК» в окошке включения/выключения компонентов операционки,
    Как удалить WSL в Windows 11 33

    после чего ожидаем, пока система выполнит подразумевающие удаление выбранных объектов манипуляции в автоматическом режиме.

  7. Как удалить WSL в Windows 11 34

  8. Щёлкаем «Перезагрузить сейчас» в окне с оповещением «Windows применила требуемые изменения»,
    Как удалить WSL в Windows 11 36

    ждём, пока завершится перезапуск ПК и

    Как удалить WSL в Windows 11 37

    осуществляемое в этом процессе окончательное удаление «Подсистемы Windows для Linux» из Windows 11.

  9. Как удалить WSL в Windows 11 38

Вариант 2: Консоль

Второй вариант действий по удалению компонента «Подсистема Виндовс для Линукс» и (при необходимости) «Платформы виртуальной машины» из Windows 11 подразумевает использование средств программы командной строки для изменения образов ОС от Microsoft под названием DISM.

  1. Открываем (обязательно, с правами Администратора) «Терминал» или «Командную строку».
  2. Как удалить WSL в Windows 11 39

  3. Для начала можно проверить факт включённости «Подсистемы Windows для Linux» в Win 11, — с такой целью при помощи следующей команды запрашиваем список всех компонентов ОС:

    Dism /online /Get-Features

    Как удалить WSL в Windows 11 41

    Прокручиваем полученный в консоли перечень, находим в нём запись «Microsoft-Windows-Subsystem-Linux», убеждаемся, что «Состояние» компонента «Включён», и затем переходим к выполнению следующего пункта этой инструкции.

  4. Как удалить WSL в Windows 11 42

  5. Пишем в консоли (или копируем из текста этой статьи и затем вставляем в окно «Терминала»/«Командной строки») такое указание:

    Dism /online /Disable-Feature /featurename:Microsoft-Windows-Subsystem-Linux /Remove /norestart

  6. Как удалить WSL в Windows 11 52

  7. Нажимаем «Enter», ожидаем
    Как удалить WSL в Windows 11 54

    завершения удаления компонента WSA из системы.

  8. Как удалить WSL в Windows 11 55

  9. При необходимости и действуя по аналогии с компонентом WSA «выключаем» через консоль «Платформу виртуальной машины», — команда будет следующей:

    Dism /online /Disable-Feature /featurename:VirtualMachinePlatform /Remove /norestart

    Как удалить WSL в Windows 11 56

  10. Завершив запуск деактивирующих компоненты Win 11 непосредственно команд, перезапускаем компьютер. С этой целью, к примеру, через «Терминал» можно отправить на выполнение следующее указание:

    Restart-Computer

    Как удалить WSL в Windows 11 57

    Читайте также: Как перезагрузить компьютер под управлением Windows 11

  11. После перезапуска ПК и проведения в этом процессе системой автоматически манипуляций
    Как удалить WSL в Windows 11 49

    полное удаление «Подсистемы Windows для Linux» из Windows 11 следует считать завершённым.

  12. Как удалить WSL в Windows 11 50

Наша группа в TelegramПолезные советы и помощь

  • Home
  • News
  • How to Uninstall WSL on Windows 11 & Windows 10? See a Guide!

How to Uninstall WSL on Windows 11 & Windows 10? See a Guide!

By Vera | Follow |
Last Updated

If you need to uninstall Windows Subsystem for Linux, you can do this task on Windows 10/11. It is not simple as program uninstallation. Refer to this post from MiniTool and find the guide on how to uninstall WSL easily.

About WSL

Windows Subsystem for Linux, also known as WSL, is a feature in Windows operating system that is primarily designed for developers, especially web developers. WSL enables you to run a Linux system with Linux command-line tools and GUI apps on Windows 11/10. This won’t break anything important on your PC.

In the earlier time, Microsoft released the first version – Windows Subsystem for Linux (WSL) that supports a direct translation between Linux and Windows. While WSL2 uses a lightweight virtual machine to integrate it into your Windows workflow. Any Linux distribution can run on either the WSL 1 or WSL 2 architecture, which depends on their configuration.

To run a Linux system on Windows 10/11, you need to install WSL and here a related post is helpful – How to Install Windows Subsystem for Linux (WSL) on Windows 11.

When anything goes wrong or you no longer need to use this platform, you may want to uninstall WSL. Well then, can you uninstall WSL from your computer? It is possible and just follow the guide below now.

Tips:

Experience a faster system with MiniTool System Booster – your solution to effortless program uninstallation.

MiniTool System Booster TrialClick to Download100%Clean & Safe

How to Uninstall WSL on Windows 10/11

How to uninstall WSL on Windows 11/10? It is not easy to completely remove WSL from your PC since this isn’t similar to uninstalling a program. You need to do three steps – delete the Linux distro, uninstall other components and disable this platform. Do the operations about WSL uninstall Ubuntu in order:

Step 1: Uninstall Linux Distro

1. In Windows 11/10, press Win + I at the same time to open Settings.

2. Go to Apps > Apps & features.

3. Choose a Linux distribution like Ubuntu and click Uninstall (Windows 10). For Windows 11, click the three dots and click Uninstall. Then, click Uninstall again to confirm the operation.

Tips:

You can type the Linux distribution like Ubuntu into the text of App list to find your installation.

WSL uninstall Ubuntu

Step 2: Delete Windows Subsystem for Linux Components

After uninstalling the Linux distribution from Windows 11/10, other elements of the Windows Subsystem for Linux functionality should be also removed.

1. In the Settings window, go to App > Apps & features.

2. Choose Windows Subsystem for Linux WSLg Preview and click Uninstall > Uninstall. In Windows 11, you need to click three dots and click Uninstall.

uninstall Windows Subsystem for Linux components

3. Find Windows Subsystem for Linux Update and uninstall it.

Step 3: Disable Windows Subsystem for Linux

This is the last step you should do and see what you should do:

1. In Windows 11/10, click System > Optional features and click More Windows features under the Related settings section to open Windows Features. 

Tips:

Alternatively, you can type windows features into the search box and click Turn Windows features on or off.

2. In the Windows Features interface, locate Virtual Machine Platform and Windows Subsystem for Linux, then uncheck the boxes of these two options.

3. Click OK to save the changes and restart your computer.

disable Windows Subsystem for Linux

After the restart, you completely uninstall WSL on Windows 11/10. If you change your mind and want to run a Linux distribution like Ubuntu, you can still reinstall WSL on your computer.

About The Author

Position: Columnist

Vera is an editor of the MiniTool Team since 2016 who has more than 7 years’ writing experiences in the field of technical articles. Her articles mainly focus on disk & partition management, PC data recovery, video conversion, as well as PC backup & restore, helping users to solve some errors and issues when using their computers. In her spare times, she likes shopping, playing games and reading some articles.

Для того, чтобы удалить WSL переходим в «Параметры» Windows 11, нажав горячие клавиши «Win+I». В окне параметров в левой части меню щелкаем по пункту «Приложения», а затем по плитке «Приложения и возможности».

Удаляем «Ubuntu», «Windows Subsystem for Linux Update» и «Windows Subsystem for Linux WSLg Preview» — напротив каждого удаляемого элемента нажимаем на кнопку с тремя точками и во всплывающем меню выбираем «Удалить».

Затем переходим в «Панель управления» — воспользуемся поиском Windows 11, в поисковой строке набираем запрос «Панель управления» и щелкаем по найденному приложению в разделе «Лучшее соответствие».

В окне панели управления щелкаем по ссылке «Удаление программы».

Затем щелкаем по «Включение или отключение компонентов Windows» в правой части окна «Программы и компоненты».

В окне «Компоненты Windows» снимаем галочку с «Подсистема Windows для Linux» и нажимаем кнопку «ОК».

Для завершения удаления нажимаем кнопку «Перезагрузить компьютер».

После перезагрузки WSL будет удалена с нашего ПК.

Windows 11 offer users a nifty feature Windows Subsystem for Linux (WSL) that allows users to run a Linux file system accompanied by Linux based GUI apps and command line tools within Windows. WLS is useful handy for developers who need both platforms.

uninstall wsl

In case, you’ve install Windows Subsystem for Linux on your Windows 11 PC and now want to remove it, then you can’t just uninstall it just like you uninstall other apps installed on your device.

It is possible that Windows Subsystem for Linux (WSL) is not working properly on Windows 11 or you want to reset WSL or there might be other reasons for doing this.

The process is complicated and to achieve this you have to follow different steps like removing the Linux distros, additional components, and then disable the platform to uninstall WSL on Windows 11.

In this blog post, we’re going to share step by step instructions on how to uninstall Windows Subsystem for Linux on Windows 11. Let’s start with first step:

Step 1: Uninstall Linux distros

Open Windows 11 settings with Window + I and then go to Apps.

Click on Apps & features on the right sidebar.

Apps & features in Windows 11

From the list of apps, you need to head over to Linux Distro, For example Ubuntu and other

Click on the three dot icon and choose Uninstall to remove Ubuntu distro. You can follow the same steps to remove other installed distros.

Uninstall Ubuntu

Step 2: Remove Linux Subsystem

Now you have to uninstall Windows subsystem apps. To do this, follow these steps:

Open Settings and then go Apps.

Click on Apps & features.

Windows Subsysem of Linux Update in windows 11

In the app list option, search for “linux”.

Click on the three dot icon and then click on Uninstall to remove Windows subsystem for linux update and WSLg Preview.

Step 3: Disable WSL

The last step is to disable Windows Subsystem for Linux feature on Windows 11.

Open Windows 11 settings and then go to Apps.

Optional features in windows 11

On the right side, scroll down and select Optional features.

In the Optional features, scroll down and find more Windows features. This will open Windows features.

More optional features in Windows 11

Here you have to uncheck the option for Windows Subsystem for Linux. Wait for few seconds.

Turn windows feature on and off windows 11

Once done, click on OK to save settings and restart your computer.

If you made up to this blog post, then it confirms that you have successfully removed Windows Subsystem for Linux from your Windows 11 PC.

Don’t worry, you can reinstall Windows Subsystem for Linux in Windows 11.

Viney Dhiman, the mind behind GeekerMag, is a seasoned content writer with over 12 years of experience. Specializing in simplifying complex tech concepts, he covers Windows OS, Android, iOS, web apps, and product reviews. His work can be found on popular tech websites like Gizmodo and The Verge, and he has been interviewed by the Microsoft Edge team.

  • To uninstall WSL on Windows 11, open Settings > Apps > Installed apps and remove the Linux distros and “Windows Subsystem for Linux” components. Finally, open Settings > System > Optional features > More Windows Features and remove the WSL and virtual machine components.

UPDATED 1/27/2025: On Windows 11, it’s possible to uninstall the Windows Subsystem for Linux (WSL), but it requires multiple (in-order) steps. Although Microsoft has streamlined the installation with a single command or using the Microsoft Store, removing the platform is not as simple as clicking an “Uninstall” button.

If you want to uninstall WSL from your computer completely, you must remove the Linux distros, uninstall additional components, and disable the platform components.

Although the ability to run Linux on Windows 11 is a useful feature for developers and users who need access to both platforms, there might come a time when you no longer need the platform or may need to reset it to fix problems. Whatever the reason, you can permanently remove WSL by uninstalling all the components in order.

In this guide, I will teach you the steps to remove the Windows Subsystem for the Linux platform from Windows 11. 

Completely uninstall WSL from Windows 11

To uninstall the Windows Subsystem for Linux from Windows 11, you first want to remove the distros, platform components, and the remaining operating system features.

1. Remove Linux distros

To uninstall a distro of Linux from WSL on Windows 11, use these steps:

  1. Open Settings on Windows 11.

  2. Click on Apps.

  3. Click the Installed apps page.

  4. Select the Linux distribution.

  5. Click the menu (three-dotted) button on the right and the Uninstall option.

    Uninstall WSL Linux distro

  6. Click the Uninstall option again.

Once you complete the steps, repeat the instructions to remove any remaining distro as necessary.

2. Remove Windows Subsystem for Linux components

To uninstall the WSL Linux kernel and GUI components on Windows 11, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and click the Run as administrator option.

  3. Type the following command to view all the installed apps and press Enter:

    Get-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackage

    Windows Subsystem for Linux uninstall

After you complete the steps, you can uninstall the platform from Windows 11.

In the past, Windows 11 offered an option on Settings > Apps > Installed apps to remove the “Windows Subsystem for Linux” component, but then, it was relocated to Settings > System > System Components. However, in this location, the component no longer includes the option to uninstall. As a result, the alternative is to remove the WSL component with PowerShell.

3. Remove WSL from Windows 11

To uninstall the Windows Subsystem for Linux components from Windows 11, use these steps:

  1. Open Settings.

  2. Click on System.

  3. Click the Optional features page.

  4. Click the “More Windows features” option under the “Related settings” section.

    Open Windows features settings

  5. Clear the “Virtual Machine Platform” option.

  6. Clear the “Windows Subsystem for Linux” option.

    Windows 11 uninstall WSL

  7. Click the OK button to uninstall the features.

  8. Click the Restart now button.

Once you complete the steps, the Windows Subsystem for Linux will be completely removed from Windows 11.

You can also follow these instructions in my video tutorial on my YouTube channel. (Remember to like and subscribe.)

If, after uninstalling the platform, the Linux entry remains on File Explorer, you can use these instructions to remove the entry with Registry.

Update January 27, 2025: This guide has been updated to ensure accuracy and reflect changes to the process.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Linux операционная система чем лучше windows
  • Windows 10 pro 14393
  • Как включить виртуализацию на windows 10 lenovo
  • Сколько оперативки надо для windows 10
  • Windows longhorn build 3718