Uninstalling all gems Ruby 2.0.0
I used this one line script.
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
It ignores default gem errors and just proceeds. Simple and self-evident.
Removing all installed Gems and starting over
From the RVM support site:
RVM installs everything into ~/.rvm.
To remove RVM from your system run 'rm
-rf ~/.rvm'. You may have one additional config file in ~/.rvmrc and
of course the RVM hook in your
bash/zsh startup files.
So, just go to the command line and type rm -rf ~/.rvm
All the installed gems are in the ~/.rvm folders, so doing the above will remove the gems and installed rubies in one go.
Gems you added pre-RVM with the default ruby install can be removed by typing this at the command prompt:
for x in `gem list --no-versions`; do gem uninstall $x -a -x -I; done
Uninstall all installed gems, in OSX?
You could also build out a new Gemfile and run bundle clean --force
. This will remove all other gems that aren't included in the new Gemfile.
Unable to uninstall Ruby 2.0.0
Why do you need to uninstall ruby2.0 to get ruby1.9.3? The whole idea of rvm is that you can have (and switch between) many different versions.
List the Rubies with rvm list
.
Install (if required) with rvm install 1.9.3
.
Swap to it with rvm use 1.9.3
.
Related Topics
How to Use "Gets" and "Gets.Chomp" in Ruby
Running Another Ruby Script from a Ruby Script
Understanding Ruby and Os I/O Buffering
Set Socket Timeout in Ruby Via So_Rcvtimeo Socket Option
String.Force_Encoding() in Ruby 1.8.7 (Or Rails 2.X)
Rails.Cache Error in Rails 3.1 - Typeerror: Can't Dump Hash With Default Proc
How to Install Rvm on Windows 7
How to Assign Hash['A']['B']= 'C' If Hash['A'] Doesn't Exist
Controller Spec Unknown Keyword: Id
How to Format the Value Shown in a Rails Edit Field
Json Encoding Wrongly Escaped (Rails 3, Ruby 1.9.2)
Get Index of Array Element Faster Than O(N)
Merge and Interleave Two Arrays in Ruby
Correctly Doing Redirect_To :Back in Ruby on Rails When Referrer Is Not Available
Change the Name of the :Id Parameter in Routing Resources for Rails
Netbeans and Rails Error: Bin/Ruby: No Such File or Directory -- Script/Rails (Loaderror)