Last active
August 29, 2015 14:23
-
-
Save ewized/1acc00a6104a384efb07 to your computer and use it in GitHub Desktop.
Install Oracle Java 8
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
#! /bin/bash | |
# Make sources | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | \ | |
tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | \ | |
tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
# Update sources | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
# Update and prep for install | |
apt-get update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | \ | |
/usr/bin/debconf-set-selections | |
apt-get install -y oracle-java8-installer | |
echo "Java installed" >> /tmp/install-java-done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment