How to Uninstall Ruby on Rails and Do a Clean Install

How do I uninstall Ruby on Rails and do a clean install?

Try this:

rvm get head
rvm reset
rvm remove ... # take the output of rvm list and do rvm remove for each item in the list
rvm cleanup
rvm repair
rvm notes # make sure that you've got all the dependencies mentioned in the output from this command
rvm install ... # reinstall your rubies

This is likely overkill, but it should get you close to a known-good configuration. If it doesn't, try:

rvm implode

That will completely remove RVM and you can start over from scratch.

If none of this works or you are still confused, paste some of the error messages here and tell more about your operating system and configuration details.

Good luck!

Uninstall Ruby on Rails, Ruby and RVM

You still have the system installed Ruby. Try to remove it from the package manager.

Try to get the path of your Ruby with:

which ruby

and if you use an RPM distribution you can see the package by issuing:

rpm -qf /path/to/ruby

or

dpkg-query -S /path/to/ruby

In case of a deb packages.

How to uninstall Ruby from /usr/local?

It's not a good idea to uninstall 1.8.6 if it's in /usr/bin. That is owned by the OS and is expected to be there.

If you put /usr/local/bin in your PATH before /usr/bin then things you have installed in /usr/local/bin will be found before any with the same name in /usr/bin, effectively overwriting or updating them, without actually doing so. You can still reach them by explicitly using /usr/bin in your #! interpreter invocation line at the top of your code.

@Anurag recommended using RVM, which I'll second. I use it to manage 1.8.7 and 1.9.1 in addition to the OS's 1.8.6.

Remove older versions of Ruby (on Windows)

This isn't the answer you're looking for, but hopefully will help you in the future. You can use Pik on Windows (as opposed to RVM on Linux/Mac) to manage multiple concurrent versions of Ruby on the same development environment.

http://github.com/vertiginous/pik/



Related Topics



Leave a reply



Submit