Skip to content

Instantly share code, notes, and snippets.

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 MarcBittnerRing/91838c7ddb3c129d84ef988c056e31f9 to your computer and use it in GitHub Desktop.
Save MarcBittnerRing/91838c7ddb3c129d84ef988c056e31f9 to your computer and use it in GitHub Desktop.
Install oracle Java 8 on Ubuntu 14.04 and automatically accept the licence agreement. 100% hands-free install.
#! /bin/bash
sudo apt-get update
sudo apt-get install -y software-properties-common debconf-utils
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo 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