I have many rubies installed by ruby-install under ~/.rubies:
ls .rubies
ruby-1.9.3-p545 ruby-2.0.0-p598 ruby-2.1.3 ruby-2.1.5
ruby-2.0.0-p451 ruby-2.1.2 ruby-2.1.4 ruby-2.2.0
I want to uninstall one of the ruby installed by ruby-install, How do I do that?
You just remove where the ruby is.
For example, uninstall ruby that installed by ruby-install (default installation location is
~/.rubies):If you see this kind of error after removed Ruby 2.2.0-preview2 and installed Ruby 2.2.0-p0 for example:
You need to run
Because whenever a ruby is updated or perhaps moved/named, due to RubyGems is generating explicit
#!/path/to/rubyfor all gem executables, will need to regenerate the gem bin stubs with the new path to the ruby executable.