Skip to content

Instantly share code, notes, and snippets.

@mhewedy
Last active October 31, 2020 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhewedy/cc0bb246dcd0fb0472ba69c60087ccd8 to your computer and use it in GitHub Desktop.
Save mhewedy/cc0bb246dcd0fb0472ba69c60087ccd8 to your computer and use it in GitHub Desktop.
Download latest release of openjdk 15 from jdk.java.net
wget -O openjdk-15.tar.gz $(curl -s https://jdk.java.net/15/ | gawk 'match($0, "http.*openjdk-15.*linux-x64_bin.tar.gz", ary) {print ary[0]}' | uniq)
@mhewedy
Copy link
Author

mhewedy commented Oct 31, 2020

Notes:

  • extracted into name: jdk-<suffix>
  • tested on RHEL 8 and on ubuntu 20.04
  • replace 15 in the command (found twice) with any version number, such as 16 to download that particular version

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