Just how can I entirely remove Ruby + Rails + Gems?

I have actually screwed up my Ruby dev setting on Ubuntu 10.04.

What is the most effective feasible means to remove these plans from my system?

  • Ruby
  • All Gems
  • RubyGems

To start fresh, I would love to re-install Ruby making use of RVM.

2019-05-06 02:02:11
Source Share
Answers: 3

If you're making use of Ubuntu Packages run sudo apt-get purge <packages>

So that needs to be something like:

sudo apt-get purge ruby rubygems

From the apt-get man page:

      purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).
2019-05-09 04:41:02

Using synaptic, you can remove the Ruby plans (select "entirely remove" alternative). I presume this is the matching of the commandline : sudo proper - get remove

Now for the treasures : they are ruled out as plans. You will certainly require to delete them by hand (unless you intend to make use of Ruby to do it, yet given that you claim it's busted ...)

By default, the Ruby treasures are mounted in your house folder, under the.gem folder. If you actually intend to get points tidy, simply delete ~/. treasure, and also it needs to suffice. When you re-install Ruby and also every little thing, the folder will certainly get developed once more, and also you will certainly be excellent to go.

2019-05-08 17:43:48

If you are making use of RVM why trouble also uninstalling the system ruby?

I install both 1.8.7 and also 1.9.2 - rc using RVM.

After you have actually mounted RVM you can set the RVM 1.8.7 to be your default ruby installment. Simply do not install RVM as origin.

For those asking yourself, https://rvm.io/ has the RVM install guidelines.

See to it you read the guidelines on what plans you require to install for Ubuntu prior to mounting 1.8.7 using RVM. If you do not install them you might have concerns with some treasures.

2019-05-08 06:00:05