Skip to content

Instantly share code, notes, and snippets.

@TheHippo
Created July 22, 2014 14:35
Show Gist options
  • Save TheHippo/ad6fd40c87ec34e79fbe to your computer and use it in GitHub Desktop.
Save TheHippo/ad6fd40c87ec34e79fbe to your computer and use it in GitHub Desktop.
Silent and automatic install of Oracles Java JDK under Ubuntu
#!/bin/bash
sudo add-apt-repository ppa:webupd8team/java --yes
sudo apt-get update
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
DEBIAN_FRONTEND=noninteractive sudo apt-get install oracle-java7-installer --yes --force-yes --assume-yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment