Forked from james-s-tayler/install-java-8-on-ubuntu-14.04-auto-accept-licence-agreement.sh
Created
January 25, 2018 03:00
-
-
Save OneYX/e7e7d2dc5f1c292500eacdef58f69a83 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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