Home How to use Homebrew
Post
Cancel

How to use Homebrew

Homebrew

Recently, I have met with some problems about Homebrew which are very annoyed. I have not spend some times on learning homebrew and reading its documents. I think it is a time to summarize it and improve the efficiency of using it.

1. Installation

Go to the Homebrew Homepage to find the command to install Homebrew. Basically, Homebrew will install all packages and applications under the following paths:

  • /usr/local/Cellar: install packages and set the link to the /bin directory
  • /usr/local/Caskroom: install applications

2. Supplement Commands

2.1 list the path of a specific package: which <package>, most of time it will link to /usr/local/bin/ but ls -la + path is able to display the real path.

2.2 get a discription of a package or an application when and where it installed or the dependencies needed to install the package: brew [cask] info <package>/[application]

2.3 list the packages installed: brew list

2.4 list outdated packages: brew outdated

2.5 fetch the update packages and upgrade them: brew update & brew upgrade

2.6 remove old versions of packages: brew cleanup

2.7 self-dignosis tools: brew doctor

2.8 install Mac application: brew cask install <application>

2.9 search packages or applications: brew search <application>

2.10 go to the homepage of a specific application: brew cask home <application>

2.11 install from Github: brew tap <>/brew

This post is licensed under CC BY 4.0 by the author.

Machine Learning Summary

Jekyll Tutorial