removing gems and rubygems

1 view
Skip to first unread message

Robert Citek

unread,
Jan 20, 2010, 7:30:56 AM1/20/10
to spec...@googlegroups.com
On Wed, Jan 20, 2010 at 7:15 AM, Robert Citek <robert...@gmail.com> wrote:
> That's pretty much what I did and what's on the wiki.  However, I was
> still getting the stack error (SystemStackError).  So I used "sudo gem
> uninstall" to uninstall all the local gems and then went through the
> installation process again.  Seemed to work.

FWIW, I uninstalled all gems like this:

$ gem list |
grep -i '^[a-z]' |
cut -d' ' -f1 |
xargs sudo gem uninstall -aIx

I'm curious to know, how do I uninstall rubygems? Is it just the
single file /usr/bin/gem1.8? Or does it also install a bunch of other
files (e.g. docs, configs, etc.)? I read through the setup.rb file,
but I didn't understand what it was doing.

Regards,
- Robert

Robert Citek

unread,
Jan 20, 2010, 8:16:05 AM1/20/10
to spec...@googlegroups.com
On Wed, Jan 20, 2010 at 7:30 AM, Robert Citek <robert...@gmail.com> wrote:
> I'm curious to know, how do I uninstall rubygems?  Is it just the
> single file /usr/bin/gem1.8?  Or does it also install a bunch of other
> files (e.g. docs, configs, etc.)?  I read through the setup.rb file,
> but I didn't understand what it was doing.

Just from poking around, it seems as though setup.rb installs a few
other items, too:

/usr/bin/gem1.8
/usr/local/lib/site_ruby/1.8/rubygems/
/usr/local/lib/site_ruby/1.8/rubygems.rb
/usr/local/lib/site_ruby/1.8/ubygems.rb

I updated the wiki to including uninstalling:

http://groups.google.com/group/spec_wire/edit/setup

Regards,
- Robert

Reply all
Reply to author
Forward
0 new messages