-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to check version/build number of WLS #1728
Comments
Hi @pawelpanasewicz -- Updates to WSL itself are automatically available through Windows Update. If you're using the stable version of Windows, WSL is updated very infrequently; probably once or twice per year. If you want faster updates, you can join the Windows Insider program; then you get updates to all of Windows (including WSL) about once every week or two (for the "Fast Ring") or maybe once every month or two (for the "Slow Ring"). Please read about the Insider program before joining; it has a bunch of effects on your system. To find your Windows build number (which corresponds to your WSL version), go to Cortana and type "About your PC", and press Enter. This should open up the Windows 10 "About" window. Your Build number is shown in the "OS Build" field: |
@aseering - You're mostly right. lxrun /update only updates the package cache (apt update), it doesn't actually install the upgrades (apt upgrade). |
@benhillis -- thanks for catching that! I've updated my comment above. |
Hi @aseering, @benhillis, thanks for advices! |
To get this information from within WSL, you can run the following: |
you can check which specific wsl version you are in by running on your Linux-alike terminals : |
@BrukeG1 did you mean "uname -r"? |
To update your wsl 2, go on Power Shell as administrator and type wsl --set-default-version 2 to check which version you are currently running/if any, go to the PowerShell as an administrator and type wsl --list --verbose |
I can update WLS instance using
lxrun /upadate
? How can I check the version of it?Will the version be some of the build numbers listed in WLS releases page?
https://msdn.microsoft.com/en-us/commandline/wsl/release_notes
The text was updated successfully, but these errors were encountered: