Skip to content

Instantly share code, notes, and snippets.

@Fleshgrinder
Created August 28, 2020 16:50
Show Gist options
  • Save Fleshgrinder/3bd37a987c54eb7a903537e8520db669 to your computer and use it in GitHub Desktop.
Save Fleshgrinder/3bd37a987c54eb7a903537e8520db669 to your computer and use it in GitHub Desktop.
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