Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to completely remove my Ruby and Rails installation.

After uninstalling Ruby with apt-get remove ruby1.9.1 I see that all the Ruby stuff like ruby, rake and irb from "/usr/bin" was removed but the gems remain here:

/var/lib/gems/1.9.1/gems

What's the best way to remove these? Again, I want to uninstall everything so I can try this install again.

rm -r /var/lib/gems/ ???
share|improve this question
    
apt-get remove --purge might be what you are looking for –  coincoin Feb 11 '13 at 18:15
    
Thanks. Tried that, too. Still the gems persist... –  Slinky Feb 11 '13 at 19:52
    
Does dpkg -S /path/to/gemfile show any package? –  coincoin Feb 11 '13 at 23:48

2 Answers 2

You should have 'gem uninstall *' or --purge on apt-get remove. However, you can safely

rm -r /var/lib/gems/
share|improve this answer

After arm wrestling with this for most of the day, I uninstalled everything, installed RVM and then installed Ruby and Rails with RVM. Much, much better.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.