Skip to content

Instantly share code, notes, and snippets.

@lazuee
Created March 5, 2025 13:49
Show Gist options
  • Save lazuee/f0a08e79ec47ae9185e6251e6b567d48 to your computer and use it in GitHub Desktop.
Save lazuee/f0a08e79ec47ae9185e6251e6b567d48 to your computer and use it in GitHub Desktop.
Winget: Install EclipseAdoptium JDK/JRE
$targetVersion = "23"
$ids = winget search EclipseAdoptium.Temurin | Where-Object { $_ -match "$targetVersion." } | ForEach-Object { [regex]::Match($_,'((EclipseAdoptium\.Temurin\.[\d]{1,2})\.(?=JDK|JRE)\S+)').Value }
$ids | ForEach-Object { winget install -e --id $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment