Skip to content

Instantly share code, notes, and snippets.

@enzinier
Created February 24, 2017 07:35
Show Gist options
  • Save enzinier/bb0f76095364b81b7b5221f1fe96517f to your computer and use it in GitHub Desktop.
Save enzinier/bb0f76095364b81b7b5221f1fe96517f to your computer and use it in GitHub Desktop.
Install Java on Ubuntu
#!/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