自制软件:列出从水龙头安装的软件包? [英] Homebrew: list the packages installed from taps?

查看:80
本文介绍了自制软件:列出从水龙头安装的软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着时间的流逝,我为Homebrew安装了许多软件包,这些软件包大部分来自默认的公式存储库( homebrew-core ),但其他位置则通过brew tap.

现在,我将一些安装脚本放在一起,以使我的开发环境更具可复制性,并且我试图弄清楚哪些软件包可以通过简单的brew install安装,哪些软件包需要事先安装brew tap.

查询清单的功能对于确定我用于哪些选项很有用.每个程序包,但不适用于此与抽头相关的问题.有没有一种方法,而无需手动检查每个软件包并查看它的可用位置?

解决方案

我发现了几种可行的方法.

brew list --full-name

速度较慢,但​​提供的信息更多:

brew info $(brew list) | grep '^From:' | sort

Over time, I've installed a number of packages with Homebrew, mostly from the default repo of formulae (homebrew-core), but some from other locations via brew tap.

Now I'm putting together some install scripts to make my dev environment more reproducible, and I'm trying to figure out which packages can be installed by a simple brew install and which require a brew tap beforehand.

The ability to query brew has proved useful for figuring out which options I used for each package, but not for this tap-related question. Is there a way to do this without manually going through each package and seeing where it's available?

解决方案

I found a couple ways that work.

brew list --full-name

Slower, but a little more informative:

brew info $(brew list) | grep '^From:' | sort

这篇关于自制软件:列出从水龙头安装的软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆