Skip to content
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

Get the full version from WSL #11488

Closed
42sol-eu opened this issue Apr 19, 2024 · 2 comments
Closed

Get the full version from WSL #11488

42sol-eu opened this issue Apr 19, 2024 · 2 comments

Comments

@42sol-eu
Copy link

After a wsl --update I want to check the full version of the WSL (x.y.z)

Describe the solution you'd like
wsl --list --version shows all x.y.z and not only x (2)

Describe alternatives you've considered
provide a new flag to show detailed version of a distribution.

Additional context
It is really hard to evaluate a upgrade it the full version is not shown.

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

@benhillis
Copy link
Member

It's a little confusing, but there are two versions:

  1. The version of the WSL package, this is the x.y.z version
  2. The version of your distro (WSL1 uses lxcore driver, WSL2 uses a VM).

You get the former by running wsl.exe --version the later by running wsl.exe --list --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants