Scala Version Manager
Simple bash script to manage multiple active scala versions
To install create a folder somewhere in your filesystem with the "
svm.sh" file inside it. To install to a folder called "
mkdir -p ~/.svm && curl "https://github.com/toolbear/svm/raw/svm/svm.sh" -o ~/.svm/svm.sh
Or if you have
git installed, then just clone it
git clone -b svm git://github.com/toolbear/svm.git ~/.svm
To activate svm, you need to source it from your bash shell
Add this line to ~/.bashrc or ~/.profile file to have it automatically sourced upon login.
To download and install the 2.8.1.final release of scala, do this:
svm install v2.8.1.final
And then in any new shell just use the installed version:
svm use v2.8.1.final
If you want to see what versions are available:
To restore your PATH, you can deactivate it.
To set a default Scala version to be used in any new shell, use the alias 'default':
svm alias default v2.8.1.final
For full commands and more more usage examples:
- sbaz - the Scala Bazaar System managed 3rd party libraries, but can also upgrade your Scala install
- sbt - Simple Build Tool can cross build your project to multiple Scala versions
Based on Node Version Manager by Tim Caswell