Created
February 24, 2017 07:35
-
-
Save enzinier/bb0f76095364b81b7b5221f1fe96517f to your computer and use it in GitHub Desktop.
Install Java on Ubuntu
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
#!/usr/bin/env bash | |
apt-get install python-software-properties | |
add-apt-repository -y ppa:webupd8team/java | |
apt-get update | |
# Enable silent install | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
apt-get install -y oracle-java8-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment