Skip to content

Instantly share code, notes, and snippets.

@erikvanoosten
Forked from visenger/install_scala_sbt.sh
Last active August 29, 2015 14:00
Show Gist options
  • Save erikvanoosten/11382154 to your computer and use it in GitHub Desktop.
Save erikvanoosten/11382154 to your computer and use it in GitHub Desktop.
#!/bin/sh
# one way (older scala version will be installed)
# sudo apt-get install scala
#2nd way
sudo apt-get remove scala-library scala
wget www.scala-lang.org/files/archive/scala-2.10.3.deb
sudo dpkg -i scala-2.10.3.deb
sudo apt-get update
sudo apt-get install scala
#3rd way
# installs a lot less dependencies
sudo apt-get install openjdk-7-headless
curl -O http://downloads.typesafe.com/scala/2.11.0/scala-2.11.0.deb
sudo dpkg --ignore-depends=openjdk-6-jre -i scala-2.11.0.deb
# sbt installation
# remove sbt:> sudo apt-get purge sbt.
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt//0.12.3/sbt.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment