How to remove a gem

View: New views
4 Messages — Rating Filter:   Alert me  

How to remove a gem

by RVince :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to remove a gem

by Hassan Schroeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, Nov 3, 2009 at 5:55 PM, RVince <rvince99@...> wrote:

> How might i uninstall a particular gem?

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

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@...
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to remove a gem

by Conrad Taylor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 3, 2009 at 5:55 PM, RVince <rvince99@...> 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 <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
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to remove a gem

by Rick-13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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...@...> wrote:

> On Tue, Nov 3, 2009 at 5:55 PM, RVince <rvinc...@...> 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 <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
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---