python - 如何像 pip 一样卡住 brew 需求?

标签 python shell command installation homebrew

在 brew 中有没有一种方法或特殊命令可以将安装的包卡住到 requirements.txt 文件中,就像在 python 中使用 pip 一样?然后从该文件快速重新安装它们?

最佳答案

使用Homebrew-bundle ;它就是为此而设计的。

# generate a Brewfile
$ brew bundle dump
$ ls
Brewfile

# check everything is installed
$ brew bundle check
The Brewfile's dependencies are satisfied.

它适用于本地公式文件和当前用户的全局公式文件。它允许您安装 Brewfile 中指定的所有内容(这是默认设置,您可以使用任何您喜欢的名称)以及卸载已安装但未在文件中列出的内容。该文件不仅列出了已安装的公式,还列出了已安装的水龙头(例如 homebrew/versionshomebrew/php 等)和木桶(如果您使用 Homebrew Cask )。

关于python - 如何像 pip 一样卡住 brew 需求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35544015/

相关文章:

python 2.7 : wmi module: Creating an interactive process on a remote system

python - 这个作业中的逗号是做什么的?

linux - 使用 Ansible 仅删除文件中第一次出现的行

linux - 如何使这个 AWK 命令不区分大小写?

powershell - 如何在PowerShell中 “grep”并显示周围的行/上下文?

flutter - 等待另一个flutter命令释放启动锁

python - Pandas :按集合中包含的字段过滤

linux - 为什么这个 sed 命令替换行而不是附加到它?

java - 区分一字、二字和三字命令

python - 如何使用 pandas 将特定列设置为 int 类型