About VersionSwitcher

Versionswitcher is a tool focused on the following features:

  • Easy to intall Python, Ruby, Node.js, Perl, and so on.
  • Easy to switch version of Python, Ruby, Node.js, Perl, and so on.

In other words, Versionswitcher is a tool similar to RVM for any programming language.

VersionSwitch requires Bash or Zsh on Unix-like system or MacOSX.

Setup

[bash]$ curl -O http://versionswitcher.appspot.com/install.sh
[bash]$ # or wget http://versionswitcher.appspot.com/install.sh
[bash]$ bash install.sh      # or zsh install.sh if you are a zsh user
[bash]$ bash                 # restart bash or zsh to enable settings
[bash]$ export VS_HOME=$HOME/lang

How to install Python, Ruby, Node.js, and so on

[bash]$ vs -i                # list installable languages
[bash]$ vs -i python         # list installable versions of Python
[bash]$ vs -i python 2.7.3   # start to install Python 2.7.3
[bash]$ ls -F $VS_HOME
python/
[bash]$ ls -F $VS_HOME/python
2.7.3/

How to switch version of Python, Ruby, Node.js, and so on

[bash]$ vs                   # list installed languages
[bash]$ vs python            # list installed versions of Python
[bash]$ vs python 2.7.3      # switch to 2.7.3
[bash]$ vs python 2.7        # switch to latest of 2.7.x installed
[bash]$ vs python 2          # switch to latest of 2.x.x installed
[bash]$ vs python latest     # switch to latest (ex. 3.2.2 or 2.7.3)
[bash]$ vs python -          # switch to system-installed (ex. /usr/bin/python)

License

  • Public Domain
  • Copyright(c) 2011-2012 kuwata-lab.com all rights reserved.