I had to clean my ruby gems because it was using a lot of space. So what were my options to get free space ? One single command to rule them all !
Here is a Windows command to uninstall all gems from your computer except a few one you cannot delete.
1 |
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }" |
On Linux, to remove ALL gems, that would be:
1 |
gem list | cut -d" " -f1 | xargs gem uninstall -aIx |
Recent Comments