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.
Asked
Active
Viewed 1.4k times
18
E-Riddie
- 14,660
- 7
- 52
- 74
Van Du Tran
- 6,736
- 11
- 45
- 55
3 Answers
26
In order to delete Carthage installed from:
Carthage.pkg:
$ rm -rf /usr/local/bin/carthage $ sudo rm -rf /Library/Frameworks/CarthageKit.frameworkHomebrew:
$ brew uninstall --force carthage
mugx
- 9,869
- 3
- 43
- 55
13
To remove carthage installed by brew:
brew uninstall carthage
To remove all versions of carthage installed by brew:
brew uninstall --force carthage
Alen Liang
- 529
- 5
- 13
-
4But how can one uninstall the Carthage.pkg version? – SAHM Oct 03 '17 at 16:19
6
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:
E-Riddie
- 14,660
- 7
- 52
- 74
-
1Great! Just a note, when I run unlink, it gives me this error: `unlink: carthage: No such file or directory`. Doesn't matter I guess? – Van Du Tran Sep 14 '17 at 16:19