- Компьютеры
- IT
- Cancel
Резюме
Подсистема Windows для Linux (WSL) позволяет запускать дистрибутивы Linux в виртуальной среде на вашем ПК. Удалить ее не так просто; необходимо удалить дистрибутивы, связанные приложения и функции Windows. Вот как я удалил WSL со своего компьютера.
Удалите все установленные дистрибутивы Linux на Windows
Этот шаг не будет актуален для всех, но если вы установили несколько дистрибутивов Linux, сначала следует их удалить. Это поможет убедиться, что на вашем компьютере не останется файлов, связанных с установками Linux, когда вы будете удалять WSL.
Удалите компоненты WSL
После удаления всех версий Linux вы можете удалить приложение WSL и его связанные компоненты. Как и на предыдущем шаге, вы можете удалить WSL так же, как и любое другое приложение на Windows 11 или 10.
Перейдите в Настройки > Приложения > Приложения и функции и прокрутите вниз до конца списка приложений, чтобы найти Подсистема Windows для Linux. Нажмите на кнопку Дополнительно и выберите Удалить. На Windows 10 кликните на названии приложения и затем выберите Удалить.
Если вы увидите какие-либо дополнительные компоненты WSL, такие как обновление WSL или предварительная версия WSLg, удалите их тем же способом.
Удалите WSL и платформу виртуальных машин
Последний этап процесса — удалить основные файлы WSL и отключить опцию в панели дополнительных функций Windows.
WSL теперь должен быть полностью удален с вашего компьютера. Он не будет получать автоматические обновления, и вы не сможете взаимодействовать с ним никаким образом. Если вам потребуется это в будущем, вот как установить WSL через Microsoft Store на компьютере с Windows.
Если вам понравилась эта статья, подпишитесь, чтобы не пропустить еще много полезных статей!
Вы также можете читать меня в:
- Telegram: https://t.me/gergenshin
- Яндекс Дзен: https://dzen.ru/gergen
- Официальный сайт: https://www-genshin.ru
So, you have used Linux inside Windows using WSL. Your goal is achieved. You learned Linux or completed your project and you don’t need WSL anymore.
It is only logical to get rid of unnecessary applications. This frees up disk space and keeps the system clean.
So, we end this WSL series by discussing the removal of WSL from Windows. Let’s see the steps.
Step 1: Uninstall all the Linux distributions
Before uninstalling WSL from your system, you should uninstall all the Linux distributions that you have installed using WSL. This can be done in two steps:
- Unregister the distribution
- Uninstall the application.
First, unregister a WSL distribution by using this command in Windows command line:
wsl --unregister <distribution_name>
🚧
Here, the distribution_name should be exactly the same as the name shown while listing the WSL distributions using wsl -l -v
Repeat the step for all the distributions you have installed.
Once all the distributions are unregistered, you can uninstall the apps, just like any other app on Windows.
📋
WSL distributions installed directly from the Microsoft Store will leave the app on your system once unregistered through the terminal. That’s why you need to uninstall them separately. Distributions installed from outside the store do not need to be uninstalled separately. This is the case for distributions that you have imported from an exported distribution tar file.
Search for the “Add or Remove Programs” in the start menu.
Inside this window, scroll down and go to the distribution name. Click on the three-dots button adjacent to it. You will see an “Uninstall” option. Use it.
Repeat the steps for the rest of the distributions.
Step 2: Uninstall WSL from the system
Once you have removed all the installed WSL distributions, it’s time to uninstall the WSL app.
It can be done the same you installed it in the first place.
If you installed Windows Subsystem for Linux App from the Microsoft Store, you can uninstall the app from the Microsoft Store itself. Open the “Add or Remove programs” window. Inside that, remove components that are related to WSL, like the Windows Subsystem for Linux app, other updates and previews, etc. if installed.
If you installed WSL as a Windows feature, you can turn off the respective feature.
Search for “features” in the Windows Start menu and open it.
Inside the features window, turn off the «Windows Subsystem for Linux» feature by unchecking the box.
If you are not planning to use Virtual machine setups in the future, you may also turn off the Virtual Machine Platform feature. Although I’ll suggest keeping it. You never know when you are in the mood for a VM.
You should reboot your system when prompted. That’s it. You have successfully removed WSL from Windows.
I hope you found this WSL series helpful in your Linux journey.
About the author
Sreenath
Linux tinkerer by day, Lord of the Rings fanatic by night. When I’m not busy conquering the command line, you can find me kicking back and watching some football while quoting JRR Tolkien
d-stream, я ж о чём
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.
Использование: wsl.exe [аргумент]
Аргументы:
--install <параметры>
Установить компоненты подсистемы Windows для Linux. Если параметры не указаны,
будут установлены рекомендуемые компоненты и дистрибутив по умолчанию.
Для просмотра дистрибутива по умолчанию и других допустимых дистрибутивов
используйте команду "wsl --list --online".
Параметры:
--distribution, -d [аргумент]
Указывает имя дистрибутива для скачивания и установки.
Аргументы:
Допустимое имя дистрибутива (без учета регистра).
Примеры:
wsl --install -d Ubuntu
wsl --install --distribution Debian
--inbox
Установить необязательный компонент Windows вместо версии, доступной в Microsoft Store.
--no-distribution
Не устанавливать дистрибутив (невозможно использовать с параметром --distribution).
--no-launch, -n
Не запускать дистрибутив после установки.
--web-download
Скачать последнюю версию WSL из Интернета, а не из Microsoft Store.
--list, -l [параметры]
Перечисляет дистрибутивы.
Параметры:
--online, -o
Показать список дистрибутивов, доступных для установки с помощью команды "wsl --install".
--status
Показать состояние подсистемы Windows для Linux.
--help
Показать сведения об использовании.
Для того, чтобы удалить WSL переходим в «Параметры» Windows 11, нажав горячие клавиши «Win+I». В окне параметров в левой части меню щелкаем по пункту «Приложения», а затем по плитке «Приложения и возможности».
Удаляем «Ubuntu», «Windows Subsystem for Linux Update» и «Windows Subsystem for Linux WSLg Preview» — напротив каждого удаляемого элемента нажимаем на кнопку с тремя точками и во всплывающем меню выбираем «Удалить».
Затем переходим в «Панель управления» — воспользуемся поиском Windows 11, в поисковой строке набираем запрос «Панель управления» и щелкаем по найденному приложению в разделе «Лучшее соответствие».
В окне панели управления щелкаем по ссылке «Удаление программы».
Затем щелкаем по «Включение или отключение компонентов Windows» в правой части окна «Программы и компоненты».
В окне «Компоненты Windows» снимаем галочку с «Подсистема Windows для Linux» и нажимаем кнопку «ОК».
Для завершения удаления нажимаем кнопку «Перезагрузить компьютер».
После перезагрузки WSL будет удалена с нашего ПК.
Uninstalling WSL (Windows Subsystem for Linux) in Windows 10 is easier than you might think. Just follow a few simple steps: open the Control Panel, go to Programs and Features, and then disable the Windows Subsystem for Linux. This will remove WSL from your system. Let’s get into the details to make sure you nail it.
In this section, we’ll walk you through the steps to uninstall WSL from your Windows 10 machine. By the end of these steps, you’ll have completely removed WSL, freeing up system resources and clearing out any Linux distributions you no longer need.
Step 1: Open the Control Panel
Open the Control Panel by typing «Control Panel» in the Windows search bar and hitting Enter.
The Control Panel is your one-stop-shop for making major system changes, and finding it is as simple as using the search bar. Once you open it, you’ll have access to various system settings and features.
Step 2: Go to Programs and Features
Inside the Control Panel, click on «Programs,» then click on «Programs and Features.»
This is where you can uninstall or modify installed programs. It’s like the app manager on your phone but for your computer. You’ll see a list of all the software installed on your machine.
Step 3: Turn Windows Features On or Off
On the left sidebar, you’ll see an option that says «Turn Windows features on or off.» Click on it.
This option allows you to enable or disable various Windows features, including WSL. This is crucial because WSL isn’t just another app; it’s a subsystem integrated into Windows.
Step 4: Locate and Uncheck Windows Subsystem for Linux
Scroll down until you see «Windows Subsystem for Linux.» Uncheck the box next to it.
By unchecking this box, you’re telling Windows to deactivate WSL. This action won’t take effect until you reboot your system, so don’t be alarmed if nothing seems to happen immediately.
Step 5: Reboot Your System
Finally, restart your computer to apply the changes.
A reboot is necessary to complete the uninstallation process. Once your system restarts, WSL will be fully removed from your machine.
After completing these steps, WSL will be removed from your system. Your computer will no longer support running Linux distributions natively through WSL, and the associated files will be deleted.
Tips for Uninstalling WSL in Windows 10
- Always back up your data before uninstalling any software.
- Ensure no Linux distributions are running when you begin the uninstallation process.
- Check for any dependencies that might rely on WSL before removing it.
- Update your Windows 10 system to the latest version for a smoother uninstallation process.
- If you plan to reinstall WSL later, make a note of any custom settings you have configured.
Frequently Asked Questions
What happens to my Linux files after uninstalling WSL?
Your Linux files will be deleted when you uninstall WSL. Be sure to back up any important data before starting the process.
Can I reinstall WSL later?
Yes, you can. Simply go through the installation process again via the Control Panel or Windows Features.
Do I need administrative privileges to uninstall WSL?
Yes, you need administrative privileges to access and change system features like WSL.
Will uninstalling WSL affect my Windows performance?
Uninstalling WSL may free up some system resources, but it won’t significantly impact overall performance.
Are there alternatives to WSL if I need a Linux environment?
Yes, you can use virtual machines like VirtualBox or VMware, or even dual-boot your system with Linux.
Summary
- Open the Control Panel.
- Go to Programs and Features.
- Click «Turn Windows features on or off.»
- Uncheck Windows Subsystem for Linux.
- Reboot your system.
Conclusion
Uninstalling WSL in Windows 10 is a straightforward process that can be done in just a few steps. By following the steps outlined above, you can efficiently remove WSL and free up system resources. Remember to back up your data and check for any dependencies before proceeding.
If you’re considering alternatives to WSL, options like virtual machines or dual-boot setups are worth exploring. They provide different levels of integration and performance suited to various needs. Whether you’re cleaning up your system or switching to a different Linux environment, understanding how to manage these subsystems is crucial.
For further reading, you might want to explore articles on optimizing Windows performance and managing different operating systems efficiently. And if you ever find the need to reinstall WSL, it’s as simple as reversing the steps outlined in this guide.
So, now that you know how to uninstall WSL in Windows 10, why not give it a try? Your system might just thank you for the extra breathing room!
Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.
