The first time I read about the Windows Subsystem for Linux (WSL) I ended up assuming something that, I admit, was hard for me, and it was nothing more than the 180 degree turn given by Microsoft with respect to Linux . Almost four years have passed since WSL came out of its beta phase and arrived with the Fall 2017 update, and although at that time more than one thought that things began and ended there, the successive steps by Microsoft, such as WSL 2’s announcement just 18 months later served as a sign that no, that Redmond’s commitment to Linux was serious.
One of the most interesting advances has been, without a doubt, allow users to use the Linux “flavor” of their choice. And it is that the simplest thing would have been to opt for a specific version, implement it and give the tool complete. However, and as you may already know if you have used it, the Windows subsystem for Linux allows you to choose between the following, according to the latest installation guide published by Microsoft in June of this year:
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- OpenSUSE Leap 15.1
- SUSE Linux Enterprise Server 12 SP5
- SUSE Linux Enterprise Server 15 SP1
- Kali Linux
- Debian GNU/Linux
- Fedora Remix for WSL
- Penguin
- Pengwin Enterprise
- Alpine WSL
To which we must add, of course, the ability to install a custom kernel.
However, the main problem is that its installation is somewhat complex. It is not a horror, and following a guide it can be done without problems, but it involves activating multiple configurations and installing multiple packages, which can be a deterrent for some users who want to have a first contact with the Linux ecosystem, but without leaving Windows.
However this is about to change, since in the last versions of Windows released in the channels for the insiders, Microsoft has introduced changes in the installation, so that you only need to use a single command, which will automatically start the full installation of the entire subsystem. So, to install it, now it will only be necessary to open the console and write wsl.exe —install and, without further intervention, the WSL installation will complete.
If we do not specify anything when using the command, the default distribution is Ubuntu And after the installation is complete and the system reboots, it will be available to start using. Do you want to use another distribution? No problem, type wsl –list to get a list of available distros, and to install the one of your choice, type wsl –install -d Distribution Name as it appears in the list to choose and install it. An important detail is that this command can be used for the first installation or to add additional distributions after you already have the subsystem installed with the default distribution.
Other very interesting commands have also been added:
- wsl –update to update the kernel.
- wsl –rollback to revert to a previous version of the kernel.
- wsl –status for general information about the current configuration.
–