Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I uninstall Ruby on ubuntu?

How can I uninstall Ruby 1.9.2dev (2010-07-02) [i486-linux] on ubuntu? Need to reinstall - please help

like image 996
khanh Avatar asked Oct 18 '10 09:10

khanh


3 Answers

This command should do the trick (provided that you installed it using a dpkg-based packet manager):

aptitude purge ruby
like image 179
jwueller Avatar answered Nov 06 '22 13:11

jwueller


Run the following command from your terminal:

sudo apt-get purge ruby

Usually works well for me.

like image 68
theamoeba Avatar answered Nov 06 '22 13:11

theamoeba


At first find out where ruby is? then

rm -rf /usr/local/lib/ruby
rm -rf /usr/lib/ruby
rm -f /usr/local/bin/ruby
rm -f /usr/bin/ruby
rm -f /usr/local/bin/irb
rm -f /usr/bin/irb
rm -f /usr/local/bin/gem
rm -f /usr/bin/gem
like image 23
regmiprem Avatar answered Nov 06 '22 13:11

regmiprem