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
2010-10-18 09:08:45
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
2010-10-18 09:13:39
Can you show us the output of aptitude?
elusive
2010-10-18 09:15:25
$ 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
2010-10-18 09:17:22
$ruby -vruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02
Nam Khanh
2010-10-18 09:18:23
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
2010-10-18 09:18:57
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
2010-10-18 09:22:53
Then simply execute `aptitude purge ruby1.8` to remove that package.
elusive
2010-10-18 09:24:16
yeah. sloved it. thanks you very much!
Nam Khanh
2010-10-18 09:28:50
You're welcome!
elusive
2010-10-18 09:29:58