刪除 Homebrew 舊版的 formula

做完brew upgrade <formula> 之後…

$ brew switch nginx 1.4.2
Cleaning /usr/local/Cellar/nginx/1.4.2
2 links created for /usr/local/Cellar/nginx/1.4.2
$ brew remove nginx
Uninstalling /usr/local/Cellar/nginx/1.4.2…
$ brew switch nginx 1.4.4
Cleaning /usr/local/Cellar/nginx/1.4.4
2 links created for /usr/local/Cellar/nginx/1.4.4

參考資料:http://www.nonsenseby.me/blog/2014/01/12/remove-old-versions-in-homebrew/

廣告