If you want to Uninstall Ruby, Ruby gems in Ubuntu from /usr/local using RVM ( Ruby Version Manager ) or without RVM, we will give lot of solutions here. Just follow and read fully. Which one suit to you, then you can use that way.
Uninstall Ruby, Ruby Gems in Ubuntu
We will start with simple methods.
Use following code to uninstall Ruby with specify version
sudo apt-get purge ruby[version]
Here [version] is version ruby which you want to Uninstall.
If you want uninstall all versions and remove all grub of Ruby, use following command,
sudo apt-get purge ruby*
Be careful when you are using this method. It will grub following things,
Find your Ruby where is it? This is First. Then use following commands,
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
This is also one of the simple code that use to uninstall Ruby and Ruby Gems.
sudo apt-get purge ruby rubygems
You can easily remove all RubyGems using following code,
gem uninstall [name_of_gem]
Using a dpkg-based packet manager we can uninstall ruby in simply. Just use following command and uninstall Ruby,
aptitude purge ruby
Solution: 7 (with RVM)
If you are using RVM – Ruby Version Manager, they make you simple. Here [version] is version of ruby like 1.8.6,…
$ rvm uninstall [version]
Latest posts by KarSho (see all)
- WAMP shows error ‘VCRUNTIME140.dll’ is missing and won’t turn green - September 9, 2017
- How to Install Android Studio on Windows step by step - July 18, 2017