Visit Azul.com Support

Install Azul Zulu on RPM-based Linux (RHEL, SLES, Oracle Linux)

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

This section explains how to install Azul Zulu Builds of OpenJDK on RPM-based Linux distributions. Azul provides RPM packages for RHEL, SLES, and Oracle Linux.

Install from Azul RPM repository

This section shows how to set up Azul’s RPM repository and install Azul Zulu using your package manager.

Note

The Azul repository contains RPM packages for the x86 and ARM64 architectures. If your machine has a different CPU architecture (for example, ARM32), consider installing the appropriate TAR.GZ package. You can find TAR.GZ packages for all supported platforms on the Downloads page.

Installing with a package manager requires root privileges. Log in as root or use sudo to execute the commands listed below.

  1. Set up the Azul RPM repository.

    For RHEL or Oracle Linux:

     
    # add the Azul RPM repository sudo yum install -y https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm

    For SLES:

     
    # download the package that adds Azul's RPM repository curl -O https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm # import Azul's public key sudo rpm --import https://www.azul.com/wp-content/uploads/2021/05/0xB1998361219BD9C9.txt # install the package sudo zypper install zulu-repo-1.0.0-1.noarch.rpm
  2. Install the required Azul Zulu package.

    For RHEL or Oracle Linux:

     
    # install Azul Zulu 21 JDK sudo yum install zulu21-jdk

    For SLES:

     
    # install Azul Zulu JDK 21 sudo zypper install zulu21-jdk

    The default installation folder is:

     
    /usr/lib/jvm/java-<major_version>-zulu-openjdk-ca

    For example, the default installation folder for Azul Zulu JDK 21 is:

     
    /usr/lib/jvm/java-21-zulu-openjdk-ca
  3. (Optional) You may want to add the <installation_folder>/bin to your PATH environment variable so you can run java without typing the full path.

     
    export PATH=<installation_folder>/bin:$PATH

Install Azul Zulu RPM package

You can download the RPM package and install it using a package manager.

  1. Download the RPM package for your OS from Azul Downloads.

  2. Verify that the checksum of the downloaded file matches the value provided on the download page. To calculate the checksum, use this command:

     
    sha256sum <zulu_package>.rpm

    Here is an example output:

     
    $ sha256sum zulu21.36.17-ca-jdk21.0.4-linux.x86_64 4ac676f55418b18b18268bf206c4970ecd16a3a8073ecbab20b78c86c346a7ef zulu21.36.17-ca-jdk21.0.4-linux.x86_64
  3. Install the package using the package manager of your OS. Using the package manager requires root privileges. Log in as root or use sudo to execute the commands listed below.

    For RHEL or Oracle Linux:

     
    sudo yum install <package>.rpm

    For SLES:

     
    sudo zypper install <package>.rpm

Install from binary TAR.GZ file

You can download and use the binary tar.gz package, if necessary.

  1. Download the appropriate .tar.gz package for your OS from Azul Downloads.

  2. Verify that the checksum of the file matches the value provided on the download page. To calculate the checksum, use this command:

     
    sha256sum <package>.tar.gz

    Example output:

     
    $ sha256sum zulu21.36.17-ca-jdk21.0.4-linux_x64.tar.gz 318d0c2ed3c876fb7ea2c952945cdcf7decfb5264ca51aece159e635ac53d544 zulu21.36.17-ca-jdk21.0.4-linux_x64.tar.gz
  3. Extract the package content into a folder.

     
    tar -xzvf <package>.tar.gz

    This command creates a folder named to match the installation package name without .tar.gz. This is your Azul Zulu installation folder.

  4. Verify that the package was unpacked successfully by running the following command:

     
    $ <installation_folder>/bin/java -version openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)
  5. (Optional) Add <installation_folder>/bin to your PATH environment variable, so that you can execute java from any directory without specifying the full path.

     
    export PATH=<installation_folder>/bin:$PATH