Created
May 8, 2017 09:22
-
-
Save marhan/e623dcf23e91faf60845ce8f90772e1a to your computer and use it in GitHub Desktop.
Installs oracle jdk 8 on Debian 8 and Ubuntu 16
This file contains hidden or 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 | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 && apt-get update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
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