Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Oracle JDK 8 on a Debian based system.
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -yq software-properties-common apt-utils
add-apt-repository ppa:webupd8team/java -y && apt-get update && \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
apt-key adv --keyserver --recv-keys C2518248EEA14886 && \
apt-get install -y --no-install-recommends oracle-java8-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment