Linux command
brew-list 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all installed packages
brew list
List installed formulae only
brew list --formula
List installed casks only
brew list --cask
List with versions
brew list --versions
Check if specific package is installed
brew list [package]
List with verbose file information
brew list --verbose [package]
List top-level packages (not dependencies)
brew leaves
说明
brew list displays all installed formulae and casks. Without arguments, it lists all packages. With a package name, it shows the installed files for that package. Aliases: brew ls
参数
- --formula
- List installed formulae only
- --cask
- List installed casks only
- --versions
- Show version numbers alongside packages
- --verbose
- Display installed files for each package
- --pinned
- List pinned formulae only
- --multiple
- List packages with multiple versions
- -1
- Force output to one entry per line
- -l
- List files in long format
- -r
- Reverse sort order
- -t
- Sort by modification time
FAQ
What is the brew-list command used for?
brew list displays all installed formulae and casks. Without arguments, it lists all packages. With a package name, it shows the installed files for that package. Aliases: brew ls
How do I run a basic brew-list example?
Run `brew list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --formula do in brew-list?
List installed formulae only