public
Last active

Scala and sbt installation on ubuntu 12.04

  • Download Gist
install_scala_sbt.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/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
 
# 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

Thanks, nazar-art!

I am looking for a good way of doing this and I prefer the solutions based on update-alternatives. Also your solution doesn't include the man pages. Thanks for sharing though :)

Nice script. By now there is an official .deb package at http://www.scala-lang.org/files/archive/scala-2.10.3.deb

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.