mpapis, rys, ddd on IRC in
#rvm on irc.freenode.net
RVM supports few ways of upgrading itself.
Every month or two a stable release of RVM is created, it includes minor version increase. Between releases only bugfixes and ruby version updates are added to it with teeny version update. Normal development and major changes continue on master branch to install it use head version. It's important to use head version before reporting errors as those could be already fixed.
$ rvm get stable
installs the stable version.
Is rvm get stable not working? Is rvm get latest telling you You already have the latest version! , but you know you don't? Try this:
$ rvm get head $ rvm reload $ rvm get stable
If that does not work for you, you can always use the installer to update:
$ \curl -sSL https://get.rvm.io | bash -s stable $ rvm reload
$ rvm get head
obtains the latest RVM repository version.
$ \curl -sSL https://get.rvm.io | bash -s stable # update to stable $ \curl -sSL https://get.rvm.io | bash -s head # update to head $ rvm reload
Yes, there's a backslash before the curl. It is important to reload after using installer for update.
$ rvm get stable --auto
by using the auto flag RVM will know to update the user configuration files to the best known way of sourcing RVM.
In early days RVM was developed only on master branch, versions were released to RVM server and when version was bug free the latest file was updated to point to it. This has changed, as mentioned above RVM stable is released and only bugfixes / ruby version updates are applied to it. The current equivalent of latest is stable and should be used instead. When updating very old versions head should be used and can be followed by stable.
$ rvm get branch [owner/][branch]
obtains the given branch possibly from the given owner, examples:
$ rvm get branch shoes # shoes branch from wayneeseguin rvm repository $ rvm get branch mpapis/ # master branch from mpapis rvm repository $ rvm get branch mpapis/shoes # shoes branch from mpapis rvm repository
rvm get head --without-gems="rvm bundler rubygems-bundler" --with-gems="hirb" --with-default-gems="rails haml"
will remove the gems rvm, bundler and rubygems-bundler from global.gems, will add hirb to global gems and will add rails and haml to default.gems.
After updating RVM, you may be also interested in Upgrading Rubies.