Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Azul Zulu JDKs on Ubuntu
#!/usr/bin/env bash
set -Eeuo pipefail
if ((EUID != 0)); then
echo 'You need superuser privileges (e.g. sudo) to run this script' >&2
exit 1
fi
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main'
apt-get update
apt-get install --auto-remove --no-install-recommends --no-install-suggests --show-upgraded --yes \
zulu-6 zulu-8 zulu-11 zulu-14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment