How to remove a gem

I would like to remove (uninstall) a particular gem. I installed the
gem creator’s beta copy of their next release, but it’s problematic,
and I neet to revert to the most recent stable version.

How might i uninstall a particular gem?

On Tue, Nov 3, 2009 at 5:55 PM, RVince [email protected] wrote:

How might i uninstall a particular gem?

You might start with gem --help

FWIW,

Hassan S. ------------------------ [email protected]
twitter: @hassan

On Tue, Nov 3, 2009 at 5:55 PM, RVince [email protected] wrote:

I would like to remove (uninstall) a particular gem. I installed the
gem creator’s beta copy of their next release, but it’s problematic,
and I neet to revert to the most recent stable version.

How might i uninstall a particular gem?

You’ll use the ‘uninstall’ option instead of ‘install’. For example,

gem uninstall

If you used ‘sudo’ to install the gem, then you’ll have to do the
following:

sudo gem uninstall

Good luck,

-Conrad

If you know the version (gem list GEMNAME) then you can:

gem uninstall GEMNAME --version=VERSION

i.e.:
gem list test-unit
*** LOCAL GEMS ***
test-unit (2.0.5, 1.2.3)

gem uninstall test-unit --version=1.2.3
Successfully uninstalled test-unit-1.2.3