Uninstall Rails 3 with dependencies?

后端 未结 4 1595
庸人自扰
庸人自扰 2021-02-08 11:34

I like that Rails 3 is so easy to install: gem install rails --pre, and all of the dependencies are automatically installed for you. But, what about uninstalling it

4条回答
  •  忘了有多久
    2021-02-08 12:06

    I found this excellent post on removing all Ruby Gems by Ken Nordquist: http://geekystuff.net/2009/01/14/remove-all-ruby-gems/

    The command uses pipes to iteratively push a gem list to the uninstall utility. Here is the command:

    'gem list | cut -d" " -f1 | xargs gem uninstall -aIx'
    

    It successfully removed all gems except the following which appear to be permanent fixtures on my Mac:

    minitest (1.6.0) rake (0.8.7) rdoc (2.5.8)

提交回复
热议问题