【MacOS】Homebrew的安装

official site:https://brew.sh

install Homebrew

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

Paste that in a macOS Terminal prompt. 上面这行复制到terminal,之后会让你输入Mac的密码,然后等待。

==> Installation successful!

成功!

输入 brew help获取基础知识:

Example usage:
  brew search [TEXT|/REGEX/]
  brew info [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]

Troubleshooting:
  brew config
  brew doctor
  brew install --verbose --debug FORMULA

Contributing:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]

Further help:
  brew commands
  brew help [COMMAND]
  man brew
  https://docs.brew.sh

输入brew command,看有哪些命令:

Built-in commands
--cache         commands        install         readall         uninstall
--cellar        config          leaves          reinstall       unlink
--env           deps            link            search          unpack
--prefix        desc            list            sh              unpin
--repository    diy             log             shellenv        untap
--version       doctor          migrate         style           update
analytics       fetch           missing         switch          update-report
cask            gist-logs       options         tap             update-reset
cat             help            outdated        tap-info        upgrade
cleanup         home            pin             tap-pin         uses
command         info            postinstall     tap-unpin       vendor-install

Built-in developer commands
audit               extract             mirror              tap-new
bottle              formula             prof                test
bump-formula-pr     irb                 pull                tests
create              linkage             release-notes       update-test
edit                man                 ruby                vendor-gems

External commands
aspell-dictionaries                      postgresql-upgrade-database

猜你喜欢

转载自blog.csdn.net/weixin_42317507/article/details/89068047