ARTICLE DETAIL

资讯详情

深耕编程入门与网站建设的一线实战洞察。

brew list 命令详解

brew list 命令详解 文章目录1. 命令介绍2. 常见用法1. 命令介绍brew list是 Homebrew 中用于查看已安装软件包的核心命令根据不同的命令参数它可以列出所有已安装包、分类列出特定类型的包或者查看某个具体包的安装文件路径Homebrew 将可安装的软件工具分为两大种类Casks、FormulaeCasks带界面的应用软件如 apipost、phpstormFormulae不带界面的命令行工具和第三方库如 wget、nvm、node2. 常见用法brew list 命令用于查看已经安装的工具和软件brew list# 所有已安装的软件包括 Formulae 和 Caskbrew list--formulae# 所有已安装的 Formulae不带界面的命令工具或库brew list--cask# 所有已安装的 Cask客户端软件查看已安装软件的版本brew list--version# 所有已安装软件的版本号brew list--version--cask# 所有已安装的 Cask 版本号brew list--version--formulae# 所有已安装的 Formulae 版本号list 也可以使用短名称: ls命令的输出结果是一样的并且更加方便推荐使用短名称brew ls brew ls --cask brew ls --version brew ls --cask --version查看特定包的信息列出指定软件包安装后的所有详细文件路径Cask 软件会显示其安装路径和软件大小brew list package使用示例$ brew list apipost App /Applications/ApiPost7.app (36,924 files, 673.1MB) $ brew list nginx /opt/homebrew/Cellar/nginx/1.25.3/.bottle/etc/ (15 files) /opt/homebrew/Cellar/nginx/1.25.3/bin/nginx /opt/homebrew/Cellar/nginx/1.25.3/homebrew.mxcl.nginx.plist /opt/homebrew/Cellar/nginx/1.25.3/homebrew.nginx.service /opt/homebrew/Cellar/nginx/1.25.3/html - ../../../var/www /opt/homebrew/Cellar/nginx/1.25.3/off /opt/homebrew/Cellar/nginx/1.25.3/share/man/man8/nginx.8 /opt/homebrew/Cellar/nginx/1.25.3/share/nginx/ (2 files)
返回列表