What’s funny is, the instructions are shorter than the title of this post.
- Install the Fedora Extra Packages for Enterprise Linux (EPEL) repository files:
su -c "rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm"
- Install the OpenJDK 6 package:
su -c "yum install java-1.6.0-openjdk"
Read more about how to use EPEL. Fedora EPEL is a community run project to bring Fedora packages to Enterprise Linux users when the package is not included by Red Hat in an Enterprise Linux release. Read more on the Fedora EPEL wiki pages, including links to package view (i386, x86_64, ppc) per EPEL version (4, 5 to correspond with Enterprise Linux versions.)