Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to uninstall rails with dependencies and documentation from gemset?
    primarykey
    data
    text
    <p><strong>What I did:</strong></p> <p>I installed rails by mistake to the <strong>wrong gemset</strong>.</p> <pre><code>$ rvm use 1.9.3 Using /home/username/.rvm/gems/ruby-1.9.3-p125 $ gem env gemdir /home/username/.rvm/gems/ruby-1.9.3-p125 $ gem install rails </code></pre> <p>It should have gone into the <strong>global gemset</strong>.</p> <pre><code>$ rvm use 1.9.3 Using /home/username/.rvm/gems/ruby-1.9.3-p125 $ rvm gemset use global Using ruby-1.9.3-p125 with gemset global $ gem env gemdir /home/username/.rvm/gems/ruby-1.9.3-p125@global $ gem install rails </code></pre> <hr> <p><strong>Questions:</strong></p> <ol> <li>How can I uninstall the whole list of gems installed with rails as well as rdoc and ri without affecting other gems installed in the same gemset? Can I also clean the <code>cache/</code> folder in the same step?</li> <li>As far as I understood it is best practice to install common gems into the <strong>global</strong> gemset, while project specific gems will go into the specific gemset of that project. Is that correct?</li> <li>By the way, what is the "wrong" gemset under <code>/home/username/.rvm/gems/ruby-1.9.3-p125</code> good for anyways?</li> </ol> <p>I am aware of similar questions like these.</p> <ul> <li><a href="https://stackoverflow.com/questions/3001425/uninstall-rails-3-with-dependencies">Uninstall Rails 3 with dependencies?</a></li> <li><a href="https://stackoverflow.com/questions/4007074/uninstalling-rails-and-gems-getting-error-cannot-uninstall-check-gem-list-d">Uninstalling rails and gems, getting error &quot;cannot uninstall, check &#39;gem list -d ...&#39;</a></li> <li><a href="https://stackoverflow.com/questions/3016939/how-to-completely-uninstall-rails-3-0-0-beta3-and-all-its-dependencies">How to completely uninstall rails 3.0.0.beta3 and all its dependencies?</a></li> <li><a href="https://stackoverflow.com/questions/2430059/how-do-i-completely-uninstall-rails-ruby-and-rubygems">How do I completely uninstall rails, ruby and rubygems?</a></li> </ul> <p>Though, I do not want to reinstall or update rails. I simply want to remove it from that particular gemset.</p> <hr> <p><strong>Approximation / question 1:</strong></p> <p>I only found <a href="https://stackoverflow.com/questions/4693445/rvm-uninstalling-all-gems-of-a-gemset">an answer</a> to the first question. Thus, it does not remove rails and its dependencies but <strong>all gems</strong>. This is what I did following the example given. I left off the name since there is no specific name, as far as I understand.</p> <pre><code>rvm use 1.9.3 Using /home/username/.rvm/gems/ruby-1.9.3-p125 rvm gemset empty </code></pre> <p>This removed the files under <code>doc/</code> and <code>gems/</code>. However, the <code>cache/</code> folder is <a href="http://pastebin.com/0v4GEc5n" rel="nofollow noreferrer">still filled</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload