brew搜索在哪里搜索本地水龙头?

时间:2017-09-21 23:22:04

标签: homebrew

我做了brew search ocaml,结果为==> Searching local taps... ocaml ocamlbuild ocamlsdl。我已经从我的系统中删除了ocaml,但它出现在搜索本地水龙头中。我已经尝试了brew cleanup -sbrew doctor,但它没有解决它。想法?

1 个答案:

答案 0 :(得分:3)

水龙头是公式的来源。公式是描述如何安装软件的文件。主要点击是homebrew/core,但任何人都可以创建一个。使用brew tapbrew untap命令管理分页。

当Homebrew告诉你它是" searching local taps"时,它意味着它正在本地的其中一个点击中寻找ocaml公式。如果找到的其中一个公式是在本地安装的,它会以粗体显示,旁边有一个小复选标记:

# OCaml is installed
$ brew search ocaml
==> Searching local taps...
ocaml ✔  ocamlbuild  ocamlsdl

# Ocaml is NOT installed
$ brew search ocaml
==> Searching local taps...
ocaml  ocamlbuild  ocamlsdl

正如您在案例中看到的那样,您没有获得该复选标记,因此未安装Ocaml。您可以通过输入brew info ocaml

来确定
$ brew info ocaml
ocaml: stable 4.05.0 (bottled), HEAD
General purpose programming language in the ML family
https://ocaml.org/
Not installed  <--------- look here
...

对于点按,您可以使用brew tap列出您在本地使用的那些:

$ brew tap
homebrew/core
homebrew/services
homebrew/fuse
homebrew/nginx
homebrew/php
...

确切的输出可能会有所不同,但您总是至少有homebrew/core

要添加新点按,请使用brew tap <tap>

 brew tap homebrew/science

要移除点按,请使用brew untap <tap>

 brew untap homebrew/science

请注意,您无法移除homebrew/core

相关问题