Created
July 17, 2014 16:28
-
-
Save r3b/e6f5bd553f97f38ffd8e to your computer and use it in GitHub Desktop.
non-interactive install for Oracle JDK
This file contains 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
# Add the Oracle JDK Repos | |
UBUNTU_VERSION=precise | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu ${UBUNTU_VERSION} main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
DEBIAN_FRONTEND="noninteractive" apt-get update | |
# Accept the Oracle License | |
echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf | |
/usr/bin/debconf-set-selections /tmp/oracle-license-debconf | |
rm /tmp/oracle-license-debconf | |
# Install Oracle JDK 7 | |
DEBIAN_FRONTEND="noninteractive" apt-get -q -y install oracle-java7-installer oracle-java7-set-default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment