红穆笔记

brew bundle

Homebrew,Homebrew Cask 和 Mac App Store的打包器

100% 瀏覽器本地處理 0 數據上傳

常用示例

從當前路徑下的 Brewfile 安裝軟件包

brew bundle

從特定路徑下的特定 Brewfile 安裝軟件包

brew bundle --file {{路徑/到/文件}}

基於所有安裝的軟件包,創建 Brewfile

brew bundle dump

卸載所有 Brewfile 中未列出的軟件包

brew bundle cleanup --force

檢查 Brewfile 中指定的包,是否需要安裝或升級

brew bundle check

列出 Brewfile 中的所有安裝包條目

brew bundle list --all

提示:花括號{{…}}是需要替換的參數(路徑、文件名等);命令只在本機終端執行,本站不保存任何輸入。

英文原文對照

展開英文說明與示例(來源 tldr-pages)

Bundler for Homebrew, Homebrew Cask, and the Mac App Store. More information

Install packages from a Brewfile at the current path

brew bundle

Install packages from a specific Brewfile at a specific path

brew bundle --file {{path/to/file}}

Create a Brewfile from all installed packages

brew bundle dump

Uninstall all formulae not listed in the Brewfile

brew bundle cleanup --force

Check if there is anything to install or upgrade in the Brewfile

brew bundle check

List all entries in the Brewfile

brew bundle list --all

命令信息

命令名brew bundle
用途Homebrew,Homebrew Cask 和 Mac App Store的打包器
適用平臺通用
示例數量6 條
官方文檔https://docs.brew.sh/Manpage#bundle-subcommand
數據來源tldr-pages(CC-BY-4.0)· 社區中文翻譯

常見問題

brew bundle 命令是做什麼的?

Homebrew,Homebrew Cask 和 Mac App Store的打包器

brew bundle 怎麼用?

頁面按場景列出了6 條常用示例:每條示例先說明用途,再給出可直接複製的完整命令(花括號裏是需要替換的參數)。

brew bundle 最常用的操作是什麼?

從當前路徑下的 Brewfile 安裝軟件包:brew bundle

命令裏的花括號是什麼意思?

花括號{{…}}表示需要替換成你自己的值,例如路徑、文件名;同名參數方括號(如 [-C|--directory])表示可選寫法。