Skip to content

Instantly share code, notes, and snippets.

@camilosampedro
Created September 4, 2015 15:30
Show Gist options
  • Save camilosampedro/7128552e33c6c4c6ab51 to your computer and use it in GitHub Desktop.
Save camilosampedro/7128552e33c6c4c6ab51 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer oracle-java8-set-default
@camilosampedro
Copy link
Author

If it throws -bash: add-apt-repository: command not found:

sudo apt-get install software-properties-common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment