How To Install Windows Subsystem For Linux (WSL) On Windows 10 - Windows Central
How To Install Windows Subsystem For Linux (WSL) On Windows 10 - Windows Central
We may earn a commission for purchases using our links. Learn more.
LINUX ON WINDOWS
On Windows 10, the Windows Subsystem for Linux (WSL) is a feature that creates a
lightweight environment that allows you to install and run supported versions of Linux
(such as Ubuntu, OpenSuse, Debian, etc.) without the complexity of setting up a virtual
machine or different computer.
Although you won't get a graphical interface, this approach enables developers and
network administrators to use a long list of command tools and services (such as vim,
tmux, andemacs, sshd, Apache, and MySQL), and run Bash shell scripts written in
Python, Ruby, C#, F#, and many others using a command console.
In this Windows 10 guide, we'll walk you through the steps to install the Windows
Subsystem for Linux using the Settings app as well as PowerShell. Also, we'll show you
the instructions to download and install Linux distros, and the steps to properly remove
all the components when you no longer need the open-source environment.
VPN Deals: Lifetime license for $16, monthly plans at $1 & more
Don't miss out
How to install Windows Subsystem for Linux using Settings
How to install Windows Subsystem for Linux using PowerShell
If you want to run distros of Linux on Windows 10, you must first enable the Windows
Subsystem for Linux feature before you can download and install the flavor of Linux
that you want to use.
1. Open Settings.
2. Click on Apps.
3. Under the "Related settings" section, click the Programs and Features option.
4. Click the Turn Windows features on or off option from the left pane.
Once you complete the steps, the environment will be configured to download and run
the distros of Linux on Windows 10.
Installing
Linux distros using Microsoft Store
If you no longer need to run Linux on your device, it's recommended to remove the
distros, and then disable WSL.
1. Open Settings.
2. Click on Apps.
3. Click on Apps & features.
4. Under the "Apps & features" section, select the distribution — for example, Ubuntu.
5. Click the Uninstall button.
Once you complete the steps, the installation of Linux will be removed, and you can
proceed with the steps to disable WSL.
1. Open Settings.
2. Click on Apps.
3. Under the "Related settings" section, click the Programs and Features option.
4. Click the Turn Windows features on or off option from the left pane.
After you complete the steps, the Windows Subsystem for Linux will be removed from
your device.
Alternatively, if you don't have access to the Windows graphical interface, or you're
comfortable using command lines, you can also use PowerShell to enable the
Windows Subsystem for Linux, download and install distros of Linux, and revert all the
changes.
To install the Windows Subsystem for Linux using PowerShell, use these steps:
1. Open Start.
2. Search for PowerShell, right-click the top result, and select the Run as
administrator option.
3. Type the following command to enable the Linux subsystem and press Enter:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-
Windows-Subsystem-Linux
Once you complete the steps, you can proceed with the instructions to download and
install any compatible distribution of Linux available through the Microsoft Store.
To download and install a distro of Linux (such as Ubuntu) with PowerShell, use these
steps:
1. Open Start.
2. Search for PowerShell, right-click the top result, and select the Run as
administrator option.
3. Type the following command to select the download folder and press Enter:
cd c:\PATH\TO\DESTINATION-FOLDER
This example navigates to the data folder in the root of the main drive:
cd c:\data
6. Type the following command to install Ubuntu version 16.04 and press Enter:
Add-AppxPackage .\APP-NAME.appx
7. Open Start.
8. Search for the recently distribution Linux distribution (for example, Ubuntu), click
the top result to launch the experience.
9. Create a username for the Linux distro and press Enter.
10. Specify a password for the distro and press Enter.
After you complete the steps, you can start using Ubuntu or any other distro as you
would on a full installation of Linux without a graphical interface.
Uninstalling
Linux distro using PowerShell
If you want to revert the changes, you first want to remove any distros of Linux before
disabling WSl.
1. Open Start.
2. Search for PowerShell, right-click the top result, and select the Run as
administrator option.
3. Type the following command to find out the distro name and press Enter:
Get-AppxPackage *PARTIAL-DISTRO-NAME*
This example search for the app package that includes "ubuntu" in the name:
Get-AppxPackage *ubuntu*
Once you complete the steps, you can proceed to disable the Windows Subsystem for
Linux feature on your computer.
1. Open Start.
2. Search for PowerShell, right-click the top result, and select the Run as
administrator option.
3. Type the following command to enable the Linux subsystem and press Enter:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-
Windows-Subsystem-Linux
After you complete the steps, the Linux environment will be disabled from your
computer.
For more helpful articles, coverage, and answers to common questions about Windows
10, visit the following resources:
We may earn a commission for purchases using our links. Learn more.
BETHESDA + XBOX
Keep in Touch
Sign up now to get the latest news, deals & more from Windows Central!
I would like to receive news and offers from other Future brands.
Yes No
SIGN ME UP
No spam, we promise. You can unsubscribe at any time and we'll never share your details without your permission.
Salma Hayek's Daughter Is Probably The Most Pretty Woman Ever Existed
LawyersFavorite
Nancy Sinatra Is Almost 80, Try Not To Smile When You See Her Now
MisterStocks
Tokopedia
Tokopedia Cek Sekarang!
Rowan Atkinson's Car Cost Him $12.2M, and This Is What It Looks Like
TeleHealth Dave
If you own a mouse, you have to try this strategy game. No Install.
DeltaWars