You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Does anybody know of ways to check the installed WSL (and kernel) versions for machine consumption? I'm looking for something like wsl --version, but that one is localized; this means the only way I can use it would be hope that the order doesn't change, and that seems iffy.
I can currently do something along the lines of GetPackagesByPackageFamily + GetPackageInfo to get the AppX version; however, it's unclear how I can get at the kernel version. That used to match up to the version of the kernel MSI package, but that appears to be no longer used.
For my purposes, I am ignoring custom kernels. For in-box WSL I can use the MSI check above (and I don't really need the WSL version in that case).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! Does anybody know of ways to check the installed WSL (and kernel) versions for machine consumption? I'm looking for something like
wsl --version
, but that one is localized; this means the only way I can use it would be hope that the order doesn't change, and that seems iffy.I can currently do something along the lines of
GetPackagesByPackageFamily
+GetPackageInfo
to get the AppX version; however, it's unclear how I can get at the kernel version. That used to match up to the version of the kernel MSI package, but that appears to be no longer used.For my purposes, I am ignoring custom kernels. For in-box WSL I can use the MSI check above (and I don't really need the WSL version in that case).
Beta Was this translation helpful? Give feedback.
All reactions