Skip to content

Instantly share code, notes, and snippets.

@rcketscientist
Forked from mikakoivisto/java7install.sh
Created September 18, 2017 12:59
Show Gist options
  • Save rcketscientist/c2f3cf61ab32e00b667e03855a19a76d to your computer and use it in GitHub Desktop.
Save rcketscientist/c2f3cf61ab32e00b667e03855a19a76d to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Java 7 automated install script
cat - <<-EOF >> /etc/apt/sources.list.d/webupd8team-java.list
# webupd8team repository list
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
EOF
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xEEA14886
echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections
apt-get update
apt-get install oracle-java7-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment