Uninstalling a ruby version.
Rvm uninstall ruby gem.
This command will uninstall version 2 6 3 of ruby.
Uninstall ruby version manager rvm.
Rvm remove is the preferred way of removing rubies from rvm.
Gem uninstall name of gem solution.
We will start with following simple command this command will remove rvm directories and all rubies what you install with rvm.
Here version is version of ruby like 1 8 6 rvm uninstall version.
Rvm uninstall just removes the ruby leaves everything else.
By default not only will it remove the ruby and it s source files it will also get rid of aliases wrappers environments and any associated binaries in other words it cleans up most of the install.
Ruby gems and ruby related binaries like rake spec gem etc are all installed directly into your operating system directories.
Current.
Using a dpkg based packet manager we can uninstall ruby in simply.
Running rvm list again will result in the output below.
Ruby related stuff is intercepted by rvm so that ruby gems and ruby related binares are installed into rvm dir in a nice clean organized way.
This will be remove rvm gem.
After above code to remove full trace of the rvm using below code.
Try rvm alias create default ruby.
7 with rvm if you are using rvm ruby version manager they make you simple.
To uninstall any version of ruby you previously installed using rvm use this command.
Ruby 2 5 5 x86 64 default ruby not set.
Just use following command and uninstall ruby aptitude purge ruby.