Skip to content

Instantly share code, notes, and snippets.

@samklr
Last active August 29, 2015 14:07
Show Gist options
  • Save samklr/8ca9051d5e1e72a0caf1 to your computer and use it in GitHub Desktop.
Save samklr/8ca9051d5e1e72a0caf1 to your computer and use it in GitHub Desktop.
Install Java Scala and SBT on Debian (useless pain in the ass)
#!/bin/sh
sudo apt-get -yqq git core
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
sudo apt-get update
sudo apt-get install oracle-java8-installer
#exit
#Scala
sudo apt-get update
sudo apt-get remove scala-library scala
##wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb ##watch out Spark only works until 2.10
wget http://scala-lang.org/files/archive/scala-2.10.4.deb
sudo apt-get -f install
sudo dpkg -i scala-2.10.4.deb
sudo apt-get update
# sbt installation
# remove sbt:> sudo apt-get purge sbt.
wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb
sudo apt-get update
sudo dpkg -i sbt-0.13.5.deb
@samklr
Copy link
Author

samklr commented Apr 24, 2015

yep. Thx

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