How do I upgrade my ruby 1.9.2-p0 to the latest patch level using rvm?

前端 未结 8 1832
庸人自扰
庸人自扰 2021-01-29 18:25

My current version of ruby is ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] but I want to update it to the latest patch level using rvm. How can I

8条回答
  •  悲哀的现实
    2021-01-29 19:24

    Upgrade ruby interpreter and keep existing gemsets:

    $ rvm upgrade 1.9.2-p0 1.9.2
    Are you sure you wish to upgrade from ruby-1.9.2-p0 to ruby-1.9.2-p136? (Y/n): Y
    

    To replace with the latest stable release of 1.9.2. This avoids clutter.

    Some additional helpful tips, thanks to comments (@Mauro, @James, @ACB)

    $ rvm list known
    # NOTE: you probably want to upgrade your rvm first, as the list of known rubies seems to be coupled to the rvm version.
    $ rvm get stable
    $ rvm list known #pick your ruby
    

提交回复
热议问题