【CLI】Homebrew调研

2015-02-06  本文已影响381人  刘大帅
Homebrew

Homebrew调研

参考文章


解释一些概念

Homebrew常见用法

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

brew install git

    *   比如安装wget  

    ```  
brew install wget  

Homebrew安装成功后,会自动创建目录 /usr/local/Cellar 来存放Homebrew安装的程序。

brew uninstall wget  
brew search /wge*/  

/wge*/是个正则表达式, 需要包含在//中,如下图


HomebrewSearch.png
    cd `brew –prefix`

    rm -rf Cellar

    brew prune 

    rm `git ls-files` 

    rm -rf Library .git .gitignore bin/brew

    rm  -rf README.md share/man/man1/brew

    rm -rf Library/Homebrew Library/Aliases 

    rm -rf Library/Formula Library/Contributions

    rm -rf ~/Library/Caches/Homebrew  
上一篇下一篇

猜你喜欢

热点阅读