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 11 JDK sudo yum install zulu11-jdk

    For SLES:

     
    # install Azul Zulu JDK 11 sudo zypper install zulu11-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 11 is:

     
    /usr/lib/jvm/java-11-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 zulu15.29.15-ca-jdk15.0.2-linux.x86_64.rpm 0f76a6df17331befea86ecbb9f995e23a921b97320bac43c453d32e55d0d35f4 zulu15.29.15-ca-jdk15.0.2-linux.x86_64.rpm
  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 zulu11.45.27-ca-jdk11.0.10-linux_x64.tar.gz 0bd85593bae021314378f3b146cfe36a6c9b0afd964d897c34201034ace3e785 zulu11.45.27-ca-jdk11.0.10-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 "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)
  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