The ability to run Linux natively in Windows 10 is provided by the WSL feature. Windows 10 does not automatically update or upgrade the packages in a distro installed in WSL. This is a task that a WSL Linux user need to perform himself.
WSL stands for Windows Subsystem for Linux, which initially, was limited to Ubuntu only. Modern versions of WSL allow installing and running multiple Linux distros from Microsoft Store.
Tip: Here's how to tweak your PC to ensure top performance for a specific type of task, be it gaming, document work or something else.
After enabling WSL, you can install various Linux versions from the Store. You can use the following links:
Most distros ship with an empty/minimal package catalog. It is strongly recommended that you regularly update your package catalog, and upgrade your installed packages in all WSL Linux distros you use.
To keep your WSL Linux distro up-to-date, you should use your distro's preferred package manager. Here's how it can be done.
To Update and Upgrade WSL Linux Distro in Windows 10,
- Run your WSL Linux distro under the required user account.
- For Debian, Ubuntu, and Kali Linux issue the following command:
sudo apt update && sudo apt upgrade.
- If the package manager shows a prompt 'Do you want to continue', type y and hit the Enter key to continue.
- In OpenSUSE Leap and SUSE Linux Enterprise Server, run the command
sudo zypper refreshto update the package list.
- To install available updates, issue the command
sudo zypper update. You can combine it with the command above to get the following one line snippet:
sudo zypper refresh && sudo zypper update.
Note: Running a command with sudo will make Linux prompt you to provide your password. When prompted, type your Linux password for the current Linux username you have set for the current WSL Linux distro, and hit the Enter key.
- Run WSL Linux Distro as Specific User in Windows 10
- Reset and Unregister WSL Linux Distro in Windows 10
- Reset Password for WSL Linux Distro in Windows 10
- All Ways to Run WSL Linux Distro in Windows 10
- Set Default WSL Linux Distro in Windows 10
- Find Running WSL Linux Distros in Windows 10
- Terminate Running WSL Linux Distro in Windows 10
- Remove Linux from Navigation Pane in Windows 10
- Export and Import WSL Linux Distro in Windows 10
- Access WSL Linux Files from Windows 10
- Enable WSL in Windows 10
- Set Default User for WSL in Windows 10
- Windows 10 Build 18836 Shows WSL/Linux File System in File Explorer