Last active
December 29, 2015 15:29
-
-
Save wolfg1969/7690943 to your computer and use it in GitHub Desktop.
Install jdk on Debian/Ubuntu non-interactively
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 | |
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