gem cleanup does not remove some old gem versions

Ross's Avatar


13 Oct, 2016 03:15 PM

sudo -H gem cleanup does not remove some old gem versions.

e.g., after running the above, both 0.4.2 & 0.4.6 of io-console remain, but the following shows there are no dependencies on either, so I don't know why 0.4.2 wasn't removed.

gem dependency io-console --reverse-dependencies
Gem io-console-0.4.2

Gem io-console-0.4.6

Can anyone explain this behavior / help fix it?

  1. Support Staff 1 Posted by sonalkr132 on 14 Oct, 2016 10:12 AM

    sonalkr132's Avatar

    Hi Ross,

    io-console is a default gem (gem which comes bundled with ruby). It is expected behavior of gem cleanup to not remove default gems. Please checkout #1530.

    Uninstalling default gems is dangerous and not recommended. Checkout this stackover question if you know what you are doing.

  2. sonalkr132 closed this discussion on 14 Oct, 2016 10:12 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac