I got an assist and was able to install what I wanted. I did:

[ec2-user@ip-172-31-9-107 nifi]$ yum search java | grep "1.8"
Last metadata expiration check: 1:00:33 ago on Tue Aug  8 18:28:56 2023.
java-1.8.0-amazon-corretto.x86_64 : Amazon Corretto runtime environment
java-1.8.0-amazon-corretto-devel.x86_64 : Amazon Corretto development environment

,and then:

sudo yum install java-1.8.0-amazon-corretto.x86_64 

which installed:

[ec2-user@ip-172-31-9-107 nifi]$ java -version
openjdk version "1.8.0_382"
Answer from Timothy Clotworthy on Stack Overflow
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
If you want to develop Java programs then install the java-1.8.0-openjdk-devel package.
Discussions

java - OpenJDK 1.8.0 installs jre but not jdk? - Stack Overflow
I found this older post: sudo yum install installs only JRE not JDK - Centos But when I ran sudo yum install java-1.8.0-openjdk-devel I don't see the jdk installed? I checked; $ sudo alternatives -- More on stackoverflow.com
🌐 stackoverflow.com
rhel - yum + dependencies not logical when installing openjdk - Unix & Linux Stack Exchange
we are tryng to install the java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm yum localinstall java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm Loaded plugins: langpacks, product-id, ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
August 16, 2019
How to install Java SDK on CentOS? - Stack Overflow
I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat. Or is there ... More on stackoverflow.com
🌐 stackoverflow.com
centos - java -version is not showing OpenSDK - Unix & Linux Stack Exchange
I have CentOS 6.7. I installed OpenJDK 1.8 with the following command. yum install java-1.8.0-openjdk-devel After installing I executed the following two commands. export JAVA_HOME=/usr/jdk/jdk1.8... More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
DevOpsSchool.com
devopsschool.com › blog › complete-guide-of-java-installation-in-linux
Java Installation Guide in Linux & Windows -
$ su -c "yum install java-1.7.0-openjdk" # JRE Version $ su -c "yum install java-1.7.0-openjdk-devel" # JDK versionCode language: PHP (php) $ su -c "yum install java-1.8.0-openjdk" # JRE Version $ su -c "yum install java-1.8.0-openjdk-devel" # JDK versionCode language: PHP (php)
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install java 8 & 11 on centos 8
How to Install Java on CentOS 8 | phoenixNAP KB
August 4, 2025 - To install the older LTS version, OpenJDK 8, use the following command: sudo yum install java-1.8.0-openjdk-devel · Verify Java version 8 is now installed with: java -version · If you are not developing in Java, but still need to run Java ...
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 8 › html › installing_and_using_red_hat_build_of_openjdk_8_for_rhel › assembly_installing-openjdk-8-on-red-hat-enterprise-linux_openjdk
Chapter 2. Installing Red Hat build of OpenJDK 8 on Red Hat Enterprise Linux | Installing and using Red Hat build of OpenJDK 8 for RHEL | Red Hat build of OpenJDK | 8 | Red Hat Documentation
... $ sudo yum list installed "java*" Installed Packages java-1.8.0-openjdk.x86_64 1:1.8.0.322.b06-2.el8_5 @rhel-8-for-x86_64-appstream-rpms java-11-openjdk.x86_64 1:11.0.14.0.9-2.el8_5 @rhel-8-for-x86_64-appstream-rpms java-17-openjdk.x86_64 1:17.0.2.0.8-4.el8_5 @rhel-8-for-x86_64-appstream-rpms
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-java-on-centos-and-fedora
How To Install Java on CentOS, Rocky Linux, RHEL, and Fedora | DigitalOcean
March 18, 2022 - To install the OpenJDK using yum, you can run sudo yum install java: ... By default, trying to install java without specifying a version will resolve to the most common stable version of the OpenJDK JRE. As you can see from this output, as of this writing, that is java-1.8.0-openjdk:
🌐
Medium
madeeshafernando.medium.com › installing-java-on-centos-4645fc81b711
Installing Java on CentOS - Madeesha's Tech Space - Medium
February 6, 2019 - sudo yum install java-1.8.0-openjdksudo yum install java-1.8.0-openjdk-devel
Find elsewhere
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_build_of_openjdk › 8 › html-single › installing_and_using_red_hat_build_of_openjdk_8_for_rhel › index
Installing and using Red Hat build of OpenJDK 8 for RHEL | Red Hat build of OpenJDK | 8 | Red Hat Documentation
... $ sudo yum list installed "java*" Installed Packages java-1.8.0-openjdk.x86_64 1:1.8.0.322.b06-2.el8_5 @rhel-8-for-x86_64-appstream-rpms java-11-openjdk.x86_64 1:11.0.14.0.9-2.el8_5 @rhel-8-for-x86_64-appstream-rpms java-17-openjdk.x86_64 1:17.0.2.0.8-4.el8_5 @rhel-8-for-x86_64-appstream-rpms
🌐
Techoral
techoral.com › blog › java › install-openjdk-8-linux.html
Open Jdk - How To Install OpenJDK Java 8 On Linux Real Quick
March 22, 2026 - $ su -c "yum install java-1.8.0-openjdk" The java-1.8.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then please install the java-1.8.0-openjdk-deve1 package.
🌐
javathinking
javathinking.com › blog › jdk-8-install-linux
Installing JDK 8 on Linux: A Comprehensive Guide — javathinking.com
Step 1: Enable Required Repositories (if needed) For CentOS 8/RHEL 8: ... # For yum (CentOS 7/RHEL 7) sudo yum install java-1.8.0-openjdk-devel # For dnf (CentOS 8/RHEL 8/Fedora) sudo dnf install java-1.8.0-openjdk-devel
🌐
Techoral
techoral.com › blog › java › install-openjdk-on-centos.html
Open Jdk - How To Install OpenJDK On Centos Real Quick
March 22, 2026 - $ sudo yum install java-1.8.0-openjdk The java-1.8.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then please install the java-1.8.0-openjdk-deve1 package.
🌐
Red Hat
developers.redhat.com › blog › 2018 › 12 › 10 › install-java-rhel8
How to install Java 17 and 21 on Red Hat Enterprise Linux 8 | Red Hat Developer
September 3, 2024 - $ sudo yum install java-21-openjdk-devel java-17-openjdk-devel maven · In the previous step, we installed JDK 21 and JDK 17 in parallel. At this point in time, JDK 8 is the main JDK on RHEL 8. That’s why you get this output when running java ...
🌐
Linuxize
linuxize.com › home › java › how to install java on centos 7
How to Install Java on CentOS 7 | Linuxize
February 24, 2020 - Selection Command ----------------------------------------------- 1 java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-11.0.3.7-0.el7_6.x86_64/bin/java) *+ 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java) Enter to keep the current selection[+], or type selection number: To change the default Java version, just enter the number when prompted and hit Enter. If, for any reason, you want to uninstall the Java package, you can uninstall it as any other package installed with yum.