重新显示 brew Post 安装文本
Redisplay brew Post Installation Text
通常,当我使用 brew package manager 在我的 Macintosh 计算机上安装工具和编程环境时,安装结束时会有一些重要的文本描述使用我刚才的一些细微差别安装。比如安装redis后,你会看到类似下面的内容
$ brew install redis
# ... lots of stuff ...
==> Caveats
To restart redis after an upgrade:
brew services restart redis
Or, if you don't want/need a background service you can just run:
redis-server /usr/local/etc/redis.conf
缺少 运行 brew uninstall [thing];
然后重新 运行 brew install [thing];
,有没有办法让 brew 重新显示此文本?
如果不是——鉴于此文本来自某处的某个程序,有没有办法获取 brew——包? (不确定这是正确的术语)-- 并在某个结构良好的数据文件或程序中找到此文本?
这些被称为 "Caveats" 并用 brew info
打印。请参阅下面的 youtube-dl
:
示例
$ brew install youtube-dl
...
==> Caveats
To use post-processing options, `brew install ffmpeg` or `brew install libav`.
Bash completion has been installed to:
/home/baptiste/.linuxbrew/etc/bash_completion.d
zsh completion has been installed to:
/home/baptiste/.linuxbrew/share/zsh/site-functions
fish completion has been installed to:
/home/baptiste/.linuxbrew/share/fish/vendor_completions.d
==> Summary
/.../Cellar/youtube-dl/2017.03.10: 11 files, 1.8M
然后:
$ brew info youtube-dl
...
==> Caveats
To use post-processing options, `brew install ffmpeg` or `brew install libav`.
Bash completion has been installed to:
/home/baptiste/.linuxbrew/etc/bash_completion.d
zsh completion has been installed to:
/home/baptiste/.linuxbrew/share/zsh/site-functions
fish completion has been installed to:
/home/baptiste/.linuxbrew/share/fish/vendor_completions.d
您还可以使用 brew info --json=v1
检索特定于公式的注意事项(不是完成内容),例如:
$ brew info --json=v1 youtube-dl | jq .
[
{
"name": "youtube-dl",
"full_name": "youtube-dl",
"desc": "Download YouTube videos from the command-line",
"homepage": "https://rg3.github.io/youtube-dl/",
...
"caveats": "To use post-processing options, `brew install ffmpeg` or `brew install libav`.",
...
}
]
注意我使用 jq 来美化输出。
通常,当我使用 brew package manager 在我的 Macintosh 计算机上安装工具和编程环境时,安装结束时会有一些重要的文本描述使用我刚才的一些细微差别安装。比如安装redis后,你会看到类似下面的内容
$ brew install redis
# ... lots of stuff ...
==> Caveats
To restart redis after an upgrade:
brew services restart redis
Or, if you don't want/need a background service you can just run:
redis-server /usr/local/etc/redis.conf
缺少 运行 brew uninstall [thing];
然后重新 运行 brew install [thing];
,有没有办法让 brew 重新显示此文本?
如果不是——鉴于此文本来自某处的某个程序,有没有办法获取 brew——包? (不确定这是正确的术语)-- 并在某个结构良好的数据文件或程序中找到此文本?
这些被称为 "Caveats" 并用 brew info
打印。请参阅下面的 youtube-dl
:
$ brew install youtube-dl
...
==> Caveats
To use post-processing options, `brew install ffmpeg` or `brew install libav`.
Bash completion has been installed to:
/home/baptiste/.linuxbrew/etc/bash_completion.d
zsh completion has been installed to:
/home/baptiste/.linuxbrew/share/zsh/site-functions
fish completion has been installed to:
/home/baptiste/.linuxbrew/share/fish/vendor_completions.d
==> Summary
/.../Cellar/youtube-dl/2017.03.10: 11 files, 1.8M
然后:
$ brew info youtube-dl
...
==> Caveats
To use post-processing options, `brew install ffmpeg` or `brew install libav`.
Bash completion has been installed to:
/home/baptiste/.linuxbrew/etc/bash_completion.d
zsh completion has been installed to:
/home/baptiste/.linuxbrew/share/zsh/site-functions
fish completion has been installed to:
/home/baptiste/.linuxbrew/share/fish/vendor_completions.d
您还可以使用 brew info --json=v1
检索特定于公式的注意事项(不是完成内容),例如:
$ brew info --json=v1 youtube-dl | jq .
[
{
"name": "youtube-dl",
"full_name": "youtube-dl",
"desc": "Download YouTube videos from the command-line",
"homepage": "https://rg3.github.io/youtube-dl/",
...
"caveats": "To use post-processing options, `brew install ffmpeg` or `brew install libav`.",
...
}
]
注意我使用 jq 来美化输出。