$ brew search httpie $ brew search cask
$ brew install httpie # if just a command $ brew cask wewechat # if is an app
list outdated package
$ brew outdated
$ brew upgrade # upgrade all packages $ brew upgrade httpie # update specific package
$ brew update # update brew local mirror
$ brew tap homebrew/cask homebrew/core homebrew/services nonchalant/appicon $ brew tap FaiChou/test # add https://github.com/FaiChou/homebrew-test to formula repository
If you install any formula, brew will search by the order:
- custom repo
Preventing formula from being upgraded when issuing the brew upgrade formula command.
$ brew cleanup # delete old and cache files $ brew cleanup -n # list what will be cleaned up
$ brew home httpie # visit httpie's homepage
This will list all formulae including auto installed dependencies.
$ brew list
Show installed formulae that are not dependencies of another installed formula.
$ brew leaves
$ brew info httpie
if you occurs
Error: formula: /usr/local/Homebrew/…/xxx.rb:6 syntax error, unexpected <<
Fetch and reset Homebrew and all tap repositories to their latest origin/master.
$ brew update-reset
As we can see on the info page, packages are installed to
The normal flow is: