zoukankan      html  css  js  c++  java
  • Uninstall all ruby gems 小青年

    Some time you may need to uninstall all the installed Ruby gems. Uninstalling individual gems is tedious job. Here you will find how to uninstall all the installed Ruby gems using single command.

    First, we need a list of installed gems. Its easier to get list of installed gems by using the command:

    gem list --no-version

    The command to uninstall all the matching version of gems without any confirmation of dependencies and executables is:

    gem uninstall -aIx GEM_NAME

    Now, we use xargs command to uninstall all the installed gems:

    gem list --no-version | xargs gem uninstall -aIx

    If your system requires sudo privilege to uninstall gems use:

    gem list –no-version | sudo xargs gem uninstall -aIxM


    from:http://codefundas.blogspot.co.at/2010_10_01_archive.html
  • 相关阅读:
    lsof命令详解
    nmap命令详解
    ss命令详解
    netstat命令详解
    ifup,ifdown命令详解
    playbook部署nginx
    cento7忘记root密码怎么办
    正确关闭selinux
    使用ssh-agent管理私钥
    gitlab中的CI
  • 原文地址:https://www.cnblogs.com/perish/p/2814086.html
Copyright © 2011-2022 走看看