#!/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 |
This comment has been minimized.
This comment has been minimized.
Thanks, nazar-art! |
This comment has been minimized.
This comment has been minimized.
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 :) |
This comment has been minimized.
This comment has been minimized.
Nice script. By now there is an official .deb package at http://www.scala-lang.org/files/archive/scala-2.10.3.deb |
This comment has been minimized.
This comment has been minimized.
I do not get it.. above script indeed uses the same .deb package you mentioned. So what is the difference ? Thx |
This comment has been minimized.
This comment has been minimized.
Please update the sbt: wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb |
This comment has been minimized.
This comment has been minimized.
wget http://www.scala-lang.org/files/archive/scala-2.11.2.deb |
This comment has been minimized.
This comment has been minimized.
Thanks @javadba and @chenrui333 |
This comment has been minimized.
This comment has been minimized.
@chenrui333 |
This comment has been minimized.
This comment has been minimized.
Thanks! After installing this way though, I get duplicate sources.list entries... is anyone else getting that when doing an sudo apt-get update? |
This comment has been minimized.
This comment has been minimized.
Thanks for idea. I've made some changes to this script for using java7 dependency instead of java6: https://gist.github.com/maizy/c4d31c1f539694f721f6 |
This comment has been minimized.
This comment has been minimized.
Hey, you've already installed scala and sbt using the deb packages, why do you follow that with "apt-get install" of these packages? |
This comment has been minimized.
This comment has been minimized.
scala: scala-2.11.6.deb |
This comment has been minimized.
you should change to http://www.scala-lang.org/download/ - scala-2.10.2.tgz