Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall ruby installed using ruby-build

Tags:

ruby

I've installed ruby-1.9.2-p290 using ruby-build. I used the command ruby-build 1.9.2-p290 ~/.rbenv/versions/1.9.2-p290

Now, How do I uninstall this version of ruby?

Thanks.

like image 549
Sathish Manohar Avatar asked Dec 17 '22 09:12

Sathish Manohar


1 Answers

ruby-build now adds an uninstall command to rbenv to handle the removal of ruby versions, if you want to avoid manual rm -r (which might be considered risky). For removing ruby version 1.9.2-p290 you would run the following:

rbenv uninstall 1.9.2-p290
like image 111
lorcan Avatar answered Jan 02 '23 07:01

lorcan