Install Azul Zulu on RPM-based Linux (RHEL, SLES, Oracle Linux)
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.
The Azul RPM repository provides packages for the following architectures:
CPU architecture | Azul Zulu versions |
---|---|
x86 |
7, 8, 11, 13, 15, 17 |
arm64 |
15, 17 |
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.
-
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.rpmFor 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 -
Install the required Azul Zulu package.
For RHEL or Oracle Linux:
# install Azul Zulu 11 JDK sudo yum install zulu11-jdkFor SLES:
# install Azul Zulu JDK 11 sudo zypper install zulu11-jdkThe default installation folder is:
/usr/lib/jvm/zulu<major_version>For example, the default installation folder for Azul Zulu JDK 11 is:
/usr/lib/jvm/zulu11 -
(Optional) You may want to add the
<installation_folder>/bin
to yourPATH
environment variable so you can runjava
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.
-
Download the RPM package for your OS from Azul Downloads.
-
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>.rpmHere 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 -
Install the package using the package manager of your OS. Using the package manager requires root privileges. Log in as
root
or usesudo
to execute the commands listed below.For RHEL or Oracle Linux:
$ sudo yum install <package>.rpmFor SLES:
sudo zypper install <package>.rpm
Install from binary TAR.GZ file
You can download and use the binary tar.gz
package, if necessary.
-
Download the appropriate
.tar.gz
package for your OS from Azul Downloads. -
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.gzExample 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 -
Extract the package content into a folder.
tar -xzvf <package>.tar.gzThis command creates a folder named to match the installation package name without
.tar.gz
. This is your Azul Zulu installation folder. -
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) -
(Optional) Add
<installation_folder>/bin
to yourPATH
environment variable, so that you can executejava
from any directory without specifying the full path.export PATH=<installation_folder>/bin:$PATH