← 返回命令列表

Linux command

brew 命令

网络

需要网络或远程资源。

常用示例

Install

brew install [wget]

Search

brew search [node]

Update

brew update

Upgrade

brew upgrade

List

brew list

Uninstall

brew uninstall [package]

Show

brew info [package]

说明

brew (Homebrew) is a package manager for macOS and Linux. It installs software from source or pre-compiled binaries, managing dependencies and versions. Homebrew has become the de facto standard package manager for macOS. The tool simplifies software installation and maintenance on Unix-like systems.

参数

install _formula_
Install package
uninstall _formula_
Remove package
update
Update Homebrew itself
upgrade _formula_
Upgrade packages
search _query_
Search for packages
list
List installed packages
info _formula_
Show package information
doctor
Check system for problems
cleanup
Remove old versions

FAQ

What is the brew command used for?

brew (Homebrew) is a package manager for macOS and Linux. It installs software from source or pre-compiled binaries, managing dependencies and versions. Homebrew has become the de facto standard package manager for macOS. The tool simplifies software installation and maintenance on Unix-like systems.

How do I run a basic brew example?

Run `brew install [wget]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install _formula_ do in brew?

Install package