homebrew一些技巧

安装 

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

中科大镜像

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.profile

升级

brew update; brew upgrade;

完全卸载

brew uninstall --force

清理

brew cleanup

检查

brew doctor

提速

cd ~/Library/Caches/Homebrew/
找到.incomplete的文件,然后axel下载
最后brew install

修改地址

brew edit softname,如 brew edit emacs
修改其中的url,保存退出

傻瓜式清理

brew update; brew upgrade; brew prune; brew cleanup
原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/2951111.html