Mac under homebrew installation and uninstallation

 

mac system commonly used software installation tools that homebrew 
think through brew relatively simple to install, under the following describes how to install 

Install and uninstall homebrew

  • installation
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Uninstall
$ cd `brew --prefix`
$ rm -rf Cellar
$ brew prune
$ rm `git ls-files`
$ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions $ rm -rf .git $ rm -rf ~/Library/Caches/Homebrew

Basic use of Homebrew

  • Install any package

    $ brew install <packageName>
    

    Example: Installation node

    $ brew install node
    
  • Uninstall any package

    $ brew uninstall <packageName>
    

    Example: Uninstall git

    $ brew uninstall git
    
  • Query packages available

    $ brew search <packageName>
    
  • View the list of installed packages

    $ brew list
    
  • View any package information

    $ brew info <packageName>
    
  • Homebrew Update

    $ brew update
    
  • View Homebrew version

    $ brew -v
    
  • Homebrew Help

    $ brew -h
  • Uninstall any installation package
    $ brew uninstall <packageName>
    

     

Guess you like

Origin www.cnblogs.com/chen1999/p/11257370.html