卸载所有安装的宝石,在OSX? [英] Uninstall all installed gems, in OSX?
问题描述
例如,我需要帮助朋友迁移他们的rails开发机器来使用RVM。因为他们之前使用过系统级的 gem
,所以在处理多个项目时遇到了很多麻烦。基本上,他是RVM转换的海报。
我如何优雅地卸载他的OSX系统上的所有gem? / b>
Rubygems> = 2.1.0 pre> gem uninstall -aIx
一个
删除所有版本
I
忽略依赖关系
x
包含可执行文件
Rubgems< 2.1.0
我在`gem list --no-versions`;做宝石卸载-aIx $我;完成
There are instances where I would like to revert and uninstall all previous gem installations.
For instance, I needed to assist a friend migrate their rails development machine to use RVM. As they had been previously using the system-wide gem
, he was experiencing many headaches when working with multiple projects. Essentially, he was the poster-child for an RVM convert.
How can I elegantly uninstall all of the gems on his OSX system?
Rubygems >= 2.1.0
gem uninstall -aIx
a
removes all versions
I
ignores dependencies
x
includes executables
Rubgems < 2.1.0
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
这篇关于卸载所有安装的宝石,在OSX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!