-
-
Save osipov/c2a34884a647c29765ed to your computer and use it in GitHub Desktop.
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb | |
sudo dpkg -i scala-2.10.4.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb | |
sudo dpkg -i sbt.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
for the latest 2.11.8 https://gist.github.com/suyesh/0de0909c15fd0f4f3d0db80d5b76ee3b
Currently I was not able to download sbt debian package from artifactoryonline. I found that debian package is supported with package manager see: http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html. And it works. I've installed sbt 0.13.11.
Thank you Worked..
sudo apt-get install libjansi-java before install scala
This worked thanks!!!
Thank you very much!! This worked
@mbonaci That is for installing a fresh scala and sbt. But doesn't help if you want a new version. I tried those commands and still have the same old version. It'd be nice if there was a better Ubuntu/Debian utility for upgrading Scala/Sbt to the latest versions. As far as I've seen, there isn't any.
This link seems to be the best way of upgrading SBT - but not Scala.
So, to update to some Scala version, just change the scalaVer
variable below. As of now, the latest version is 2.11.8. So if that's what you need, you can leave these commands as-is:
# Mini Script for Updating Scala to some Scala version
# Does not update SBT. Just Scala.
# This is for Debian/Mint/Ubuntu distributions
scalaVer="2.11.8"
sudo apt-get remove scala-library scala
sudo wget www.scala-lang.org/files/archive/scala-"$scalaVer".deb
sudo dpkg -i scala-"$scalaVer".deb
sudo apt-get update
sudo apt-get install scala
Then, if you want to update sbt
, I woulld use the officially supported method above.
See my Gist updateScalaVersion.sh for a script that will update your Scala to some version. It is to be used like this:
sudo ./updateScalaVersion 2.11.8
thank you 👍
Thanks
- need to update to: sudo wget www.scala-lang.org/files/archive/scala-2.13.0-M1.deb for the latest scala version
Awesome 👍
works great; thanks