How to Update WSL Kernel on Windows 11
This guide explains how to update the Windows Subsystem for Linux (WSL) kernel on your Windows 11 computer.
Why update the WSL kernel?
Keeping your Linux kernel updated is important for your computer. It gives you the latest security fixes and helps your Linux tools run faster. It also makes sure new software works correctly on your system.
What happens when you are done?
After you finish, your Windows Subsystem for Linux (WSL) will use the newest kernel version from Microsoft. This makes your Linux environment more stable and gives you access to the latest features and performance improvements.
How to verify your current WSL kernel version
Before you update, you should check which version you are using. This helps you see if an update is actually needed.
- Open the Windows Terminal as an administrator. (Note: This step requires admin privileges.)
- Type the following command and press Enter: Code
wsl --status
- Look for the kernel version number in the output.
How to update WSL kernel on Windows 11
The easiest way to update is by using the official command-line tool. This method works for most users.
- Open the Windows Terminal as an administrator. (Note: This step requires admin privileges.)
- Type this command and press Enter: Code
wsl --update
- Wait for the process to finish. It will download the latest linux-msft-wsl package automatically.
How to update WSL kernel without Microsoft Store
If you cannot use the Microsoft Store, the wsl --update command is your best option. It pulls the files directly from Microsoft servers. You do not need the Store app to run this command. It is the standard way to keep the WSL 2 architecture updated on enterprise or restricted machines.
Is a system reboot required after updating?
Usually, you do not need to restart your computer. However, you must restart the WSL service. You can do this by running wsl --shutdown in your terminal. This closes all running Linux distributions so the new kernel can load the next time you open them.
Summary
Updating your WSL kernel keeps your Linux environment secure and fast. You can use the wsl --update command to get the latest version. Always use an administrator terminal for these changes. If you run into any trouble, the wsl --update --rollback command is a safe way to return to your previous setup.
Why does wsl –update not change my kernel version?
If the command does not change your version, it means you are already on the latest release provided by Microsoft. Sometimes, there is a delay between a new release on the GitHub repository and when it becomes available via the command line. You can check the official WSL GitHub repository for the latest notes.
How do I roll back to a previous WSL kernel?
If you find that your Linux tools are crashing after an update, you can go back to the previous version. Open your terminal as an administrator and run the command wsl --update --rollback. This will remove the new kernel and restore the last version that was working correctly on your system.
Was this guide helpful?
Leave a Reply