snipt

Ctrl+h for KB shortcuts

Bash

Upgrade/downgrade RubyGems

$ gem update --system <version>
https://snipt.net/embed/518a64f93af2eb3101582417105795bc/
/raw/518a64f93af2eb3101582417105795bc/
518a64f93af2eb3101582417105795bc
bash
Bash
1
2019-07-21T18:20:16
True
False
False
/api/public/snipt/26894/
upgradedowngrade-rubygems
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ gem update --system &lt;version&gt; </span></pre></div> </td></tr></table>
ruby, rubygems

Bash

Uninstall all Ruby gems

# http://geekystuff.net/2009/1/14/remove-all-ruby-gems
$ gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx
https://snipt.net/embed/2a26e81ee1f89e4fd8ff493b9a5a85ff/
/raw/2a26e81ee1f89e4fd8ff493b9a5a85ff/
2a26e81ee1f89e4fd8ff493b9a5a85ff
bash
Bash
2
2019-07-15T15:56:44
True
False
False
/api/public/snipt/25310/
uninstall-all-ruby-gems-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># http://geekystuff.net/2009/1/14/remove-all-ruby-gems</span> </span><span id="L-2"><a name="L-2"></a>$ gem list <span class="p">|</span> cut -d<span class="s2">&quot; &quot;</span> -f1 <span class="p">|</span> xargs sudo gem uninstall -aIx </span></pre></div> </td></tr></table>
ruby, rubygems