Skip to content

Instantly share code, notes, and snippets.

@wolfg1969
Last active December 29, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolfg1969/7690943 to your computer and use it in GitHub Desktop.
Save wolfg1969/7690943 to your computer and use it in GitHub Desktop.
Install jdk on Debian/Ubuntu non-interactively
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
add-apt-repository -y ppa:webupd8team/java
apt-get update && apt-get upgrade -y
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-get install -y 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