# Gem yank - not working

**URL:** <https://www.ruby-forum.com/t/gem-yank-not-working/202546>\
**Category:** Rails\
**Created:** [February 1, 2011, 7:49am UTC](https://www.ruby-forum.com/t/gem-yank-not-working/202546 "2011-02-01T07:49:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 1, 2011, 7:49am UTC](https://www.ruby-forum.com/t/gem-yank-not-working/202546/1 "2011-02-01T07:49:19Z")

</div>

Hi All,

I have distributes a gem. Now i want to remove it from the distribution.  
So i have used “gem yank gemname -v version”. But i’m getting the  
following error.

ERROR: While executing gem … (RuntimeError)  
Unknown command yank

The command “gem help commands” gives the following list, which doesn’t  
have “yank” command in it. Please guide me.

build Build a gem from a gemspec  
cert Manage RubyGems certificates and signing settings  
check Check installed gems  
cleanup Clean up old versions of installed gems in the  
local  
repository  
contents Display the contents of the installed gems  
dependency Show the dependencies of an installed gem  
environment Display information about the RubyGems environment  
fetch Download a gem and place it in the current  
directory  
generate\_index Generates the index files for a gem server  
directory  
help Provide help on the ‘gem’ command  
install Install a gem into the local repository  
list Display gems whose name starts with STRING  
lock Generate a lockdown list of gems  
mirror Mirror a gem repository  
outdated Display all gems that need updates  
owner Manage gem owners on [RubyGems.org](http://RubyGems.org).  
pristine Restores installed gems to pristine condition from  
files  
located in the gem cache  
push Push a gem up to [RubyGems.org](http://RubyGems.org)  
query Query gem information in local or remote  
repositories  
rdoc Generates RDoc for pre-installed gems  
search Display all gems whose name contains STRING  
server Documentation and gem repository HTTP server  
sources Manage the sources and cache file RubyGems uses to  
search  
for gems  
specification Display gem specification (in yaml)  
stale List gems along with access times  
uninstall Uninstall gems from the local repository  
unpack Unpack an installed gem to the current directory  
update Update the named gems (or all installed gems) in  
the local  
repository  
which Find the location of a library file you can  
require

For help on a particular command, use ‘gem help COMMAND’.

Commands may be abbreviated, so long as they are unambiguous.  
e.g. ‘gem i rake’ is short for ‘gem install rake’.

Thanks,  
Priya

---

<div class="post-metadata">

**Author:** ![priya\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/898d66/32.png) [@priya\_d](https://www.ruby-forum.com/u/priya_d)\
**Post date:** [February 1, 2011, 8:55am UTC](https://www.ruby-forum.com/t/gem-yank-not-working/202546/2 "2011-02-01T08:55:56Z")

</div>

Hi,

I got the command works.

We need to install “gemcutter”. This will add “yank” to the list of gem  
commands.

Then, we can use “gem yank gem\_name -v version”. It works.

Thanks,  
Priya
