简体   繁体   中英

Is it possible to isolate 'rvm upgrade' to single ruby version?

I wanted to upgrade Ruby version. The documentation I initially followed was on RVM: Upgrading Rubies .

On my machine, I had multiple ruby versions loaded, including

$ rvm list

rvm rubies

   ruby-1.8.7-pxxx [ i686 ]
=> ruby-1.9.3-pxxx [ i686 ]
   ruby-2.0.0-p0   [ i686 ]

Wanted to upgrade ruby-2.0, so ran that rvm upgrade 2.0.0-p0 2.0.0-p247 . The thing is, it then seemed to force upgrade on all of the other versions as well, where I no longer could use commands like rvm use 1.8 or rvm use 1.9 without having to upgrade those to the latest -pxxx versions.

For reference, is there a way to isolate this upgrade to one ruby version , so that for example, when I upgrade 2.0 in future, I don't have to mess around with ruby-1.9.3-p448 anymore?

Actually, what it did was update the info about the latest ruby patches on each version. What you needed to do was rvm use 1.9.3-pxxx , where xxx is the old ruby version that you already had. If you use only rvm use 1.9.3 rvm will default to the latest patch of that version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM