How to install Java on AlmaLinux

To install Java on AlmaLinux, first make sure your system is fully updated:

dnf -y update

Install EPEL if you don't already have it:

dnf install -y epel-release

If you want the latest rolling release of Java, run:

dnf install -y java-latest-openjdk

Otherwise, for Java 8 (which is available in appstream):

dnf install -y java-1.8.0-openjdk

Other Java versions are available too such as version 11 and 17.

Article Information
  • Article ID: 274
  • Category: AlmaLinux
  • Viewed 252 times.
  • Rating:
    (1)
  • Was this article helpful?
  • Yes No
Did you find this article helpful?