Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Scala and sbt installation on ubuntu 12.04

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# one way (older scala version will be installed)
# sudo apt-get install scala
#2nd way
sudo apt-get remove scala-library scala
sudo dpkg -i scala-2.11.4.deb
sudo apt-get update
sudo apt-get install scala
# sbt installation
# remove sbt:> sudo apt-get purge sbt.
sudo dpkg -i sbt-0.13.6.deb
sudo apt-get update
sudo apt-get install sbt

you should change to - scala-2.10.2.tgz


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

mujain commented

I do not get it.. above script indeed uses the same .deb package you mentioned. So what is the difference ? Thx

Please update the sbt:

sudo dpkg -i sbt-0.13.5.deb


Thanks @javadba and @chenrui333

Thank you !!!...
This is much easier than change system variable manually :)

Thanks! After installing this way though, I get duplicate sources.list entries... is anyone else getting that when doing an sudo apt-get update?

Thanks for idea.

I've made some changes to this script for using java7 dependency instead of java6:
It may be useful for someone.

Hey, you've already installed scala and sbt using the deb packages, why do you follow that with "apt-get install" of these packages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.