How to remove a gem

2 views
Skip to first unread message

RVince

unread,
Nov 3, 2009, 8:55:36 PM11/3/09
to Ruby on Rails: Talk
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?

Hassan Schroeder

unread,
Nov 3, 2009, 8:57:48 PM11/3/09
to rubyonra...@googlegroups.com
On Tue, Nov 3, 2009 at 5:55 PM, RVince <rvin...@hotmail.com> wrote:

> How might i uninstall a particular gem?

You *might* start with `gem --help`

FWIW,
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan

Conrad Taylor

unread,
Nov 3, 2009, 9:23:17 PM11/3/09
to rubyonra...@googlegroups.com
On Tue, Nov 3, 2009 at 5:55 PM, RVince <rvin...@hotmail.com> wrote:
You'll use the 'uninstall' option instead of 'install'.  For example,

gem uninstall <gem-name>

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

sudo gem uninstall <gem-name>

Good luck,

-Conrad
 


Rick

unread,
Nov 3, 2009, 11:07:49 PM11/3/09
to Ruby on Rails: Talk
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


On Nov 3, 9:23 pm, Conrad Taylor <conra...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages