views:

46

answers:

1

How can I uninstall Ruby on ubuntu? Need to reinstall - please help

+4  A: 

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

aptitude purge ruby
elusive
thanks for your response. It didn't sloved this problem. I execute this command and check ruby -v. it still show ruby 1.8.7
Nam Khanh
Can you show us the output of aptitude?
elusive
$ sudo aptitude purge rubyNo packages will be installed, upgraded, or removed.0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.Need to get 0B of archives. After unpacking 0B will be used.
Nam Khanh
$ruby -vruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02
Nam Khanh
It seems like aptitude did not find the package `ruby` on your system. Execute `dpkg -l | grep ruby` for a list of installed ruby-related packages. For example `ruby1.8`.
elusive
yes. I execute this command. this is result libopenssl-ruby, ruby-enterprise 1.8.7-2010.02, ruby1.8 1.8.6.111-2ubuntu1...
Nam Khanh
Then simply execute `aptitude purge ruby1.8` to remove that package.
elusive
yeah. sloved it. thanks you very much!
Nam Khanh
You're welcome!
elusive