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?
To uninstall Ruby installed by ruby-install, you can follow these steps:
~/.rubies/
folder. You can check the exact location by running the following command:This will list all of the Ruby installations managed by ruby-install.
Replace
<version>
with the version of Ruby that you want to uninstall.This will uninstall all of the gems installed for the specified Ruby version.
This will remove all of the Ruby installation files that are cached by ruby-install.
Important: Be careful when uninstalling Ruby, as it may remove other dependencies that are installed on your system. It is always a good idea to back up your system before uninstalling any software.