Machine installation and uninstallation of HOMEBREW under Mac

The commonly used software installation tool for mac systems is homebrew
I personally think that installation through brew is relatively simple. Here is how to install it

< h2>Install and uninstall homebrew

  • Install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /pre> share picture< /span> 
  • 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

< span class="cke_reset cke_widget_drag_handler_container">share picture

Homebrew basic Use

  • Install any package

    $ brew install 

    share picture

    Example: Install node

    $ brew install node

    share picture

  • Uninstall any package

    $ brew uninstall 

    share picture

    Example: Uninstall git

    $ brew uninstall git

    share picture

  • Check available packages

    $ brew search 

    share picture

  • View the list of installed packages

    $ brew list< /pre> share picture 
    < /li>
  • View any package letter Information

    $ brew info  share picture 
  • Update Homebrew

    $ brew update

    share picture

  • View Homebrew version

    $ brew -v

    share picture

  • Homebrew help information

    $ brew -h

    share picture

  • Uninstall any installation package
    $ brew uninstall  share picture  

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

share picture

$ 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< /span>

share picture

$ brew install 

share picture

$ brew install node

share picture

$ bre w uninstall 

share picture

$ brew uninstall git

share picture

$ brew search 

Share a picture

$ brew list

share picture

$ brew info 

share picture

$ brew update

Share the picture

$ brew -v

share picture

$ brew -h

share picture< /span>

$ brew uninstall < /pre> share picture 

Leave a Comment

Your email address will not be published.