Skip to content

Instantly share code, notes, and snippets.

@enzinier
Created February 28, 2017 01:55
Show Gist options
  • Save enzinier/7c0074a3d46d2e7aeb3e2e54ea25e1d5 to your computer and use it in GitHub Desktop.
Save enzinier/7c0074a3d46d2e7aeb3e2e54ea25e1d5 to your computer and use it in GitHub Desktop.
Sliently install Java 8 on Ubuntu
#!/usr/bin/env bash
sudo apt-get install -y python-software-properties debconf-utils
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
sudo 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