How to remove a specific version of a gem file in a specific directory

Posted on 23 May 2011

First find the path of the gem...

gem list -d "name_of_gem"

Then to remove the gem...

gem uninstall 'name_of_gem' -i '/path/to/gem'

About Paul

Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.

Follow Paul on Twitter

Email: paulsturgess [at] gmail.com

Read more articles in the archive →

Got something to say?