Videos
Why not use the one that Redhat provides? Which is the preferred way of installation, judging from the OpenJDK install page.
yum info java-1.8.0-openjdk
Name : java-1.8.0-openjdk
Arch : x86_64
Epoch : 1
Version : 1.8.0.181
Release : 3.b13.el7_5
Size : 501 k
From repo : rhel-7-server-rpms
Answering the comments:
Version locking can be achieved with yum-plugin-versionlock or rather by providing a local mirror (using Foreman and its 'Content Views' feature).
Downloading a RPM to a box can be done from a properly registered host with yumdownloader (see the yum-utils package).
Should you nonetheless be keen on installing your own version, creating a RPM is recommended. Take a look on how the Redhat/CentOS folk do it or use one of the other approaches as inspiration.
Note that openjdk.java.net is for builds of the OpenJDK provided by Oracle (which is not the same as Oracle JDK published under OTN license).
An alternative would be to use another distribution of OpenJDK:
- The free version of Azul Zulu
- AdoptOpenJDK has both HotSpot and OpenJ9
- Or see this blog entry by Stephen Colebourne, which gives links to other distributions: Time to look beyond Oracle's JDK .