# Gem cleanup/uninstall not dropping old executables?

**URL:** <https://www.ruby-forum.com/t/gem-cleanup-uninstall-not-dropping-old-executables/179856>\
**Category:** Ruby\
**Created:** [December 5, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/gem-cleanup-uninstall-not-dropping-old-executables/179856 "2009-12-05T16:58:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shot\_SPiotr\_S.S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Post date:** [December 5, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/gem-cleanup-uninstall-not-dropping-old-executables/179856/1 "2009-12-05T16:58:14Z")

</div>

Hello, dear readers of ruby-talk.

Iâ€™m an avid user of gem update/gem cleanup pair, but I just  
noticed that gem cleanup does not drop old executables.

After â€˜gem install art-decomp -v 0.0.0; gem update; gem cleanupâ€™ I still  
have the ad-compare executable (which was in 0.0.0 but was renamed to  
ad-analyse in 0.1.0).

Similarily, if I have both 0.0.0 and 0.1.0 installed and try to gem  
uninstall the 0.0.0 version, it will ask about removing the executables.  
If I decline, no executables get removed (so I end up with both 0.0.0â€™s  
and 0.1.0â€™s executables); if I agree, Iâ€™m only left with executables  
introduced in 0.1.0.

I can understand gem uninstallâ€™s behaviour, but would it make sense that  
when I uninstall 0.0.0, thereâ€™s an option to remove the executables used  
solely by that version? If there was an option for this, gem cleanup  
could use it by default.

Iâ€™m writing to ruby-talk because Iâ€™m not sure Iâ€™m not missing something  
about RubyGems; Iâ€™m also not sure where to report a bug â€“ on RubyForgeâ€™s  
bug tracker or on Rubyâ€™s Redmine (now that RubyGems are a part of 1.9).

â€” Shot
