How to remove RVM (Ruby Version Manager) from my system
There's a simple command built-in that will pull it:
rvm implode
This will remove the rvm/
directory and all the rubies built within it. In order to remove the final trace of rvm, you need to remove the rvm gem, too, if you installed that:
gem uninstall rvm
There may be elements left over from a Homebrew, Apt or DNF install of it that require removal as well. This depends on how you installed it in the first place. That clean-up step is optional, as RVM will no longer be involved in Ruby, but can help keep things organized.
If you've made modifications to your PATH
you might want to pull those, too. Check your .bashrc
, .profile
and .bash_profile
files, among other things.
You may also have an /etc/rvmrc
file, or one in your home directory ~/.rvmrc
that may need to be removed as well.
How to Uninstall RVM?
It’s easy; just do the following:
rvm implode
or
rm -rf ~/.rvm
And don’t forget to remove the script calls in the following files:
~/.bashrc
~/.bash_profile
~/.profile
And maybe others depending on whatever shell you’re using.
Remove RVM, Ruby and gems completely?
Linux and installed as regular user ? Than all you need to do is:
rm -Rf ./.rvm
rm -Rf ./.gem
rm -f ./.gemrc
You can also check ~/.bashrc and ~/.bash_profile files for lines like this:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
This should be enough. If you've installed it in some custom way then try this:
$ rvm list # to see what version you have installed
$ rvm gemdir # to see where are gemfiles located
There is something like rvm remove
as well but, if you want to just remove all, than it's not very interesting I think.
Trouble on uninstalling RVM
RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'.
Refer this. and where is everything installed to?
How do I uninstall ruby and gems using RVM?
Basically taken from http://beginrescueend.com/rvm/:
To list the available ruby versions to install type:
rvm list known
To then install from the list of known, type:
rvm install VERSION_NUMBER
To then use the ruby version you have installed:
rvm use VERSION_NUMBER
You can make a certain ruby version your system default version:
rvm use VERSION_NUMBER --default
To remove the ruby version and keep the gemsets:
rvm uninstall VERSION_NUMBER
To remove ruby and its associated gemsets:
rvm remove VERSION_NUMBER
To learn about your ruby environment and where they are installed / aliased:
rvm info
Related Topics
How to Pass Command Line Arguments to a Rake Task
Does Ruby Have Real Multithreading
Difference Between Rake Db:Migrate Db:Reset and Db:Schema:Load
What Is the Ruby ≪=≫ (Spaceship) Operator
Why Use Ruby'S Attr_Accessor, Attr_Reader and Attr_Writer
How to Make --No-Ri --No-Rdoc the Default For Gem Install
Why Use Symbols as Hash Keys in Ruby
How to Understand Symbols in Ruby
Ruby Array Access 2 Consecutive(Chained) Elements At a Time
How to Find Where a Method Is Defined At Runtime
Ruby Block and Unparenthesized Arguments
How to Pick Randomly from an Array
How to Sum Array of Numbers in Ruby