How to uninstall datamapper (or any rubygem)
November 19th, 2008 • Uncategorized
gem list dm --no-version | xargs sudo gem uninstall -a -x
gem list data --no-version | xargs sudo gem uninstall -a -x
gem list do_ --no-version | xargs sudo gem uninstall -a -x
3 Responses (Add Your Comment)
-
Lukas Rieder November 20, 2008at 9:02 pm
-
thanks. It really helped me.
This is a nice one. Thank you.
Recently I’ve had a lot of trouble with a gem which was installed in my ~/.gems and /usr/lib/ruby/1.8/gems.
To get rid of this be aware of the sudo.
# either do (for system wide gem installations)
$ sudo gem uninstall
# or do (for ~/.gems installations)
$ gem uninstall
# and you can just go to the directory and remove it
Something I find very usefull when working with gems is:
$ gem which ActiveRecord
(checking gem activerecord-2.1.2 for ActiveRecord)
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/ActiveRecord.rb
Have fun!