Reference above list and modify package name to install specific version:
From:
jdk1.8.x86_64 2000:1.8.0_281-fcs
To:
jdk1.8-1.8.0_281-fcs.x86_64
yum install jdk1.8-1.8.0_281-fcs.x86_64
If java version is wrong, you can correct it by uninstalling (remove) and installing the desired version.
A reboot or restart of the environment(s) may be necessary.
java -version yum list jdk1.8 yum --showduplicates list jdk1.8 # OCI Cloud yum install jdk1.8-1.8.0_351-fcs.x86_64 -nogpgcheck
NOTE: For Java, check both jdk and jre RPM packages.
It’s possible issues could arise if jdk is excluded, but not jre if it’s installed (ie version conflict). jdk1.8 jre1.8
Ideally, only jdk is needed, jre is not.
OCI Cloud only Example: OCI server:/> yum --showduplicates list jdk1.8 Available Packages jdk1.8.x86_64 2000:1.8.0_271-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_281-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_291-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_301-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_311-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_321-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_331-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_333-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_341-fcs ol7_oci_included jdk1.8.x86_64 2000:1.8.0_351-fcs ol7_oci_included
Reference above list and modify package name to install specific version: From: jdk1.8.x86_64 2000:1.8.0_281-fcs
To: jdk1.8-1.8.0_281-fcs.x86_64
yum install jdk1.8-1.8.0_281-fcs.x86_64
If java version is wrong, you can correct it by uninstalling (remove) and installing the desired version. A reboot or restart of the environment(s) may be necessary.
yum remove jdk1.8-1.8.0_351-fcs.x86_64 yum install jdk1.8-1.8.0_281-fcs.x86_64