Homebrew是最新的,但我是否需要担心"无法链接"+"删除路径"错误?

Has*_*tax 13 unix bash homebrew

我已经使用自制软件成功安装了rvm和ocaml软件包,但我总是想知道$ brew update输出结束时的错误.例如,当我刚刚运行它时,bash输出是:

Error: Could not link:
/usr/local/etc/bash_completion.d/brew

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/zsh/site-functions/_brew

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew-cask.1
/usr/local/share/man/man1/brew.1
Run Code Online (Sandbox Code Playgroud)

我的同事说不要担心,但......我担心.我该怎么做才能修复它们?只是运行rm并完全删除"删除我"路径,以及mkdir无法链接的路径?

equ*_*-l2 13

所有指定的文件都只是符号链接,所以不用担心,只需删除它们即可.

要确保它们是符号链接,您可以运行以下命令:

file -h <what you want to inspect>
Run Code Online (Sandbox Code Playgroud)

  • 谢谢你的安慰。我读了一些有关符号链接的内容,然后删除了它们 `rm -rf /path` (2认同)