apropos
apropos

Reputation: 103

How can I completely reset my Ruby installation?

I'm running Manjaro Linux 18.0.4. I seem to have accidentally uninstalled some Ruby gems, or interrupted installation by doing ctrl+c.

I tried uninstalling all gems with:

gem uninstall -aIx

and an error code pops up:

ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::RDoc

I also tried uninstalling Ruby itself through pamac.

I'd just like to start over. What's the best way to accomplish that?

Upvotes: 0

Views: 710

Answers (2)

Sachin Singh
Sachin Singh

Reputation: 7225

To fix this error try installing these gems

gem install rdoc
gem update rake

Upvotes: 1

Sindhuja Selvaraj
Sindhuja Selvaraj

Reputation: 141

sudo apt-get purge <packages> this is what I follow when I completely want to start fresh. So, it would be something like sudo apt-get purge ruby rubygems

Note: purge will delete its configuration files too.

I always suggest people to install ruby using rvm

Upvotes: 2

Related Questions