Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scala and sbt installation on ubuntu 12.04
#!/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 http://www.scala-lang.org/files/archive/scala-2.11.4.deb
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.
wget http://dl.bintray.com/sbt/debian/sbt-0.13.6.deb
sudo dpkg -i sbt-0.13.6.deb
sudo apt-get update
sudo apt-get install sbt
@nazar-art

This comment has been minimized.

Copy link

nazar-art commented Aug 11, 2013

you should change to http://www.scala-lang.org/download/ - scala-2.10.2.tgz

@visenger

This comment has been minimized.

Copy link
Owner Author

visenger commented Oct 4, 2013

Thanks, nazar-art!

@DavidGamba

This comment has been minimized.

Copy link

DavidGamba commented Oct 14, 2013

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 :)

@choffmeister

This comment has been minimized.

Copy link

choffmeister commented Nov 8, 2013

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

@mujain

This comment has been minimized.

Copy link

mujain commented Jul 3, 2014

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

@javadba

This comment has been minimized.

Copy link

javadba commented Jul 13, 2014

Please update the sbt:

wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb
sudo dpkg -i sbt-0.13.5.deb

@chenrui333

This comment has been minimized.

Copy link

chenrui333 commented Aug 1, 2014

@visenger

This comment has been minimized.

Copy link
Owner Author

visenger commented Aug 8, 2014

Thanks @javadba and @chenrui333

@goFrendiAsgard

This comment has been minimized.

Copy link

goFrendiAsgard commented Aug 22, 2014

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

@poliu2s

This comment has been minimized.

Copy link

poliu2s commented Sep 11, 2014

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

@maizy

This comment has been minimized.

Copy link

maizy commented Oct 2, 2014

Thanks for idea.

I've made some changes to this script for using java7 dependency instead of java6: https://gist.github.com/maizy/c4d31c1f539694f721f6
It may be useful for someone.

@bjing

This comment has been minimized.

Copy link

bjing commented Dec 27, 2014

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

@dunnock

This comment has been minimized.

Copy link

dunnock commented Mar 27, 2015

scala: scala-2.11.6.deb
sbt: sbt-0.13.8.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.