How to completely remove rails 3.0.0.beta3 and all its dependencies?

If I execute sudo gem uninstall rails -v 3.0.0.beta3, it removes the rails, but leaves the beta versions of activerecord, actionmailer, etc. How to completely remove rails 3.0.0.beta3 and all its dependencies automatically? I would like to get a clean list for RC and final releases.

+3
source share
5 answers
$ gem list
...
$ sudo gem uninstall {gem-you-don't-want} {version-you-don't-want}
$ {rinse-and-repeat}
+2
source

If your situation is that you have installed beta 4 and want to get rid of beta 3, you can simply run

gem cleanup

which removes everything except the latest version of all your gems (destroying beta 3 and leaving you with beta 4).

+1

$ gem dependency rails -v 3.1.0
Gem rails-3.1.0
  actionmailer (= 3.1.0)
  actionpack (= 3.1.0)
  activerecord (= 3.1.0)
  activeresource (= 3.1.0)
  activesupport (= 3.1.0)
  bundler (~> 1.0)
  railties (= 3.1.0)

, .

$gem activerecord -v 3.1.0

You can also view reverse dependencies by using the **-v** flag

    $ gem dependency rails -r
+1

, script gem

gem , activerecord, activesupport ..

0

.it gem uninstall railties ,

0

Source: https://habr.com/ru/post/1749450/


All Articles