Created
August 28, 2020 16:50
-
-
Save Fleshgrinder/3bd37a987c54eb7a903537e8520db669 to your computer and use it in GitHub Desktop.
Install Azul Zulu JDKs on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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