Installing Azul Zulu CA APK-Packages on Linux
Community Availability (CA) distributions are Azul Zulu Builds of OpenJDK that are free to download and use.
Use the following instructions to install Azul Zulu CA on an APK-based system (Alpine). You can use the Azul’s APT repository, download a DEB package manually, or download a binary TAR.GZ package.
Installing from Azul’s APK repository
This section shows how to install Azul Zulu from the Azul APK repository using the apk package manager.
Installing with the package manager requires root privileges.
Log in as root
or prefix the commands listed below with sudo
.
-
Set up the Azul APK repository:
# Add Azul's public key sudo wget -P /etc/apk/keys/ \ https://cdn.azul.com/public_keys/[email protected] # Add the Azul APK repository echo "https://repos.azul.com/zulu/alpine" | sudo tee -a /etc/apk/repositories # Update the list of packages sudo apk update -
Install the required Azul Zulu package. For example, to install Azul Zulu 21 JDK, run:
sudo apk add zulu21-jdk -
To verify your installation, run the
java -version
command. You should see output similar to the following:$ 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)
Unresolved directive in linux-ca-apk.adoc - include::common/install-on-linux-from-tar-gz.adoc[leveloffset=+1]