How to uninstall Carthage from OS X?

2020-07-02 08:34发布

Somehow, my Carthage installation is corrupted (seems like I have two versions installed) due to the fact that I installed using the Carthage.pkg file then also with brew install carthage. I'd like to completely remove Carthage(s) but can't find the way to do so.

3条回答
我想做一个坏孩纸
2楼-- · 2020-07-02 08:50

In order to delete Carthage installed from:

  1. Carthage.pkg:

    $ rm -rf /usr/local/bin/carthage
    $ sudo rm -rf /Library/Frameworks/CarthageKit.framework
    
  2. Homebrew:

    $ brew uninstall --force carthage
    
查看更多
迷人小祖宗
3楼-- · 2020-07-02 08:52

To remove carthage installed by brew:

brew uninstall carthage

To remove all versions of carthage installed by brew:

brew uninstall --force carthage
查看更多
手持菜刀,她持情操
4楼-- · 2020-07-02 09:07

If you installed it via Carthage.pkg you can remove it by using the following commands in terminal:

sudo rm -rf /Library/Frameworks/CarthageKit.framework
unlink carthage

To delete it from Homebrew you just have to do what Alen Liang provided on his answer:

查看更多
登录 后发表回答