Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to completely remove ruby? [closed]

Tags:

linux

ruby

rvm

I have installed multiple versions of Ruby that causes some problems. How do I remove it completey(all versions)? I use Linux(Fedora)

like image 621
user16948 Avatar asked Dec 09 '22 22:12

user16948


2 Answers

Use rvm implode to get rid of RVM installed Rubies and yum for uninstalling distriubtion packages if there are any.

From the RVM docs:

implode - removes all ruby installations it manages, everything in ~/.rvm

like image 141
Michael Kohl Avatar answered Dec 21 '22 07:12

Michael Kohl


As suggested, you can use rvm implode which removes ruby,

Also find ruby:

whereis ruby

and then remove each one of them like:

rm -f /usr/local/bin/ruby

Then check the file .installed.list in the build directory to check list of installed files. Also you can remove and confirm that ruby files are removed

like image 23
Bijendra Avatar answered Dec 21 '22 08:12

Bijendra