mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-17 20:51:21 +08:00
doc: update homebrew.md 3d1317603e
This commit is contained in:
@ -31,7 +31,7 @@
|
|||||||
<p>Homebrew 是 macOS(或Linux)缺少的包管理器,备忘清单包含 <a href="https://github.com/Homebrew/brew">brew</a> 命令的使用与安装</p>
|
<p>Homebrew 是 macOS(或Linux)缺少的包管理器,备忘清单包含 <a href="https://github.com/Homebrew/brew">brew</a> 命令的使用与安装</p>
|
||||||
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
|
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
|
||||||
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
|
||||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#homebrew">Homebrew</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#命令">命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#更多包命令">更多包命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-cask-命令">Brew Cask 命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#全局命令">全局命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-清理">Brew 清理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-源码仓库">Brew 源码仓库</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#搜索查看">搜索查看</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#帮助命令">帮助命令</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="homebrew"><a aria-hidden="true" tabindex="-1" href="#homebrew"><span class="icon icon-link"></span></a>Homebrew</h2><div class="wrap-body">
|
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#homebrew">Homebrew</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#安装">安装</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#命令">命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#更多包命令">更多包命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-cask-命令">Brew Cask 命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#全局命令">全局命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-清理">Brew 清理</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#brew-源码仓库">Brew 源码仓库</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#搜索查看">搜索查看</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#帮助命令">帮助命令</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#依赖">依赖</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#卸载-homebrew">卸载 Homebrew</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="homebrew"><a aria-hidden="true" tabindex="-1" href="#homebrew"><span class="icon icon-link"></span></a>Homebrew</h2><div class="wrap-body">
|
||||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="安装"><a aria-hidden="true" tabindex="-1" href="#安装"><span class="icon icon-link"></span></a>安装</h3><div class="wrap-body">
|
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="安装"><a aria-hidden="true" tabindex="-1" href="#安装"><span class="icon icon-link"></span></a>安装</h3><div class="wrap-body">
|
||||||
<!--rehype:wrap-class=row-span-3-->
|
<!--rehype:wrap-class=row-span-3-->
|
||||||
<pre class="wrap-text "><code class="language-bash code-highlight"><span class="code-line">/bin/bash <span class="token parameter variable">-c</span> <span class="token string">"<span class="token variable"><span class="token variable">$(</span><span class="token function">curl</span> <span class="token parameter variable">-fsSL</span> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh<span class="token variable">)</span></span>"</span>
|
<pre class="wrap-text "><code class="language-bash code-highlight"><span class="code-line">/bin/bash <span class="token parameter variable">-c</span> <span class="token string">"<span class="token variable"><span class="token variable">$(</span><span class="token function">curl</span> <span class="token parameter variable">-fsSL</span> https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh<span class="token variable">)</span></span>"</span>
|
||||||
@ -253,6 +253,21 @@
|
|||||||
|
|
||||||
|
|
||||||
<table><thead><tr><th align="left">命令</th><th align="left">说明</th></tr></thead><tbody><tr><td align="left"><code>brew help</code></td><td align="left">打印帮助信息</td></tr><tr><td align="left"><code>brew help <sub-command></code></td><td align="left">打印子命令的帮助信息</td></tr></tbody></table>
|
<table><thead><tr><th align="left">命令</th><th align="left">说明</th></tr></thead><tbody><tr><td align="left"><code>brew help</code></td><td align="left">打印帮助信息</td></tr><tr><td align="left"><code>brew help <sub-command></code></td><td align="left">打印子命令的帮助信息</td></tr></tbody></table>
|
||||||
|
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="依赖"><a aria-hidden="true" tabindex="-1" href="#依赖"><span class="icon icon-link"></span></a>依赖</h3><div class="wrap-body">
|
||||||
|
<p>显示<code>包</code>的依赖关系。 特定于<code>包</code>的其他选项可能是附加到命令</p>
|
||||||
|
<pre class="language-bash"><code class="language-bash code-highlight"><span class="code-line"><span class="token comment"># 您还可以看到包和依赖关系图</span>
|
||||||
|
</span><span class="code-line">$ brew deps <span class="token parameter variable">--tree</span> <span class="token parameter variable">--installed</span>
|
||||||
|
</span><span class="code-line">$ brew deps <span class="token function">git</span> <span class="token comment"># 显示 git 依赖</span>
|
||||||
|
</span></code></pre>
|
||||||
|
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="卸载-homebrew"><a aria-hidden="true" tabindex="-1" href="#卸载-homebrew"><span class="icon icon-link"></span></a>卸载 Homebrew</h3><div class="wrap-body">
|
||||||
|
<ul>
|
||||||
|
<li>使用官方卸载脚本卸载 Homebrew</li>
|
||||||
|
<li>验证文件是否已删除</li>
|
||||||
|
</ul>
|
||||||
|
<pre class="wrap-text "><code class="language-bash code-highlight"><span class="code-line">$ /bin/bash <span class="token parameter variable">-c</span> <span class="token string">"<span class="token variable"><span class="token variable">$(</span><span class="token function">curl</span> <span class="token parameter variable">-fsSL</span> https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh<span class="token variable">)</span></span>"</span>
|
||||||
|
</span><span class="code-line">$ <span class="token function">sudo</span> <span class="token function">rm</span> <span class="token parameter variable">-rf</span> /opt/homebrew
|
||||||
|
</span></code></pre>
|
||||||
|
<!--rehype:className=wrap-text -->
|
||||||
</div></div></div></div></div><div class="wrap h2body-not-exist"><div class="wrap-header h2wrap"><h2 id="另见"><a aria-hidden="true" tabindex="-1" href="#另见"><span class="icon icon-link"></span></a>另见</h2><div class="wrap-body">
|
</div></div></div></div></div><div class="wrap h2body-not-exist"><div class="wrap-header h2wrap"><h2 id="另见"><a aria-hidden="true" tabindex="-1" href="#另见"><span class="icon icon-link"></span></a>另见</h2><div class="wrap-body">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://brew.sh/index_zh-cn">Homebrew 官网</a> <em>(brew.sh)</em></li>
|
<li><a href="https://brew.sh/index_zh-cn">Homebrew 官网</a> <em>(brew.sh)</em></li>
|
||||||
|
@ -164,7 +164,7 @@
|
|||||||
</span><span class="code-line"><span class="token operator">>></span><span class="token operator">></span> <span class="token string-interpolation"><span class="token string">f'</span><span class="token interpolation"><span class="token punctuation">{</span>num<span class="token punctuation">}</span></span><span class="token string"> + 10 = </span><span class="token interpolation"><span class="token punctuation">{</span>num <span class="token operator">+</span> <span class="token number">10</span><span class="token punctuation">}</span></span><span class="token string">'</span></span>
|
</span><span class="code-line"><span class="token operator">>></span><span class="token operator">></span> <span class="token string-interpolation"><span class="token string">f'</span><span class="token interpolation"><span class="token punctuation">{</span>num<span class="token punctuation">}</span></span><span class="token string"> + 10 = </span><span class="token interpolation"><span class="token punctuation">{</span>num <span class="token operator">+</span> <span class="token number">10</span><span class="token punctuation">}</span></span><span class="token string">'</span></span>
|
||||||
</span><span class="code-line"><span class="token string">'10 + 10 = 20'</span>
|
</span><span class="code-line"><span class="token string">'10 + 10 = 20'</span>
|
||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
<p>查看: <a href="#python-f-%E5%AD%97%E7%AC%A6%E4%B8%B2-%E8%87%AA-python-3-6-%E8%B5%B7">Python F-Strings</a></p>
|
<p>查看: <a href="#python-f-%E5%AD%97%E7%AC%A6%E4%B8%B2%E8%87%AA-python-36-%E8%B5%B7">Python F-Strings</a></p>
|
||||||
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="python-数据类型"><a aria-hidden="true" tabindex="-1" href="#python-数据类型"><span class="icon icon-link"></span></a>Python 数据类型</h2><div class="wrap-body">
|
</div></div></div></div></div><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="python-数据类型"><a aria-hidden="true" tabindex="-1" href="#python-数据类型"><span class="icon icon-link"></span></a>Python 数据类型</h2><div class="wrap-body">
|
||||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串"><a aria-hidden="true" tabindex="-1" href="#字符串"><span class="icon icon-link"></span></a>字符串</h3><div class="wrap-body">
|
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="字符串"><a aria-hidden="true" tabindex="-1" href="#字符串"><span class="icon icon-link"></span></a>字符串</h3><div class="wrap-body">
|
||||||
<pre class="language-python"><code class="language-python code-highlight"><span class="code-line">hello <span class="token operator">=</span> <span class="token string">"Hello World"</span>
|
<pre class="language-python"><code class="language-python code-highlight"><span class="code-line">hello <span class="token operator">=</span> <span class="token string">"Hello World"</span>
|
||||||
|
12
index.html
12
index.html
@ -742,15 +742,15 @@
|
|||||||
<a href="https://github.com/LiuYuan-SHU" title="Liuyuan">
|
<a href="https://github.com/LiuYuan-SHU" title="Liuyuan">
|
||||||
<img src="https://avatars.githubusercontent.com/u/96400967?v=4" width="42;" alt="Liuyuan">
|
<img src="https://avatars.githubusercontent.com/u/96400967?v=4" width="42;" alt="Liuyuan">
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://github.com/LufsX" title="LufsX">
|
||||||
|
<img src="https://avatars.githubusercontent.com/u/33221883?v=4" width="42;" alt="LufsX">
|
||||||
|
</a>
|
||||||
<a href="https://github.com/heStudio-Network" title="醉、倾城">
|
<a href="https://github.com/heStudio-Network" title="醉、倾城">
|
||||||
<img src="https://avatars.githubusercontent.com/u/119711513?v=4" width="42;" alt="醉、倾城">
|
<img src="https://avatars.githubusercontent.com/u/119711513?v=4" width="42;" alt="醉、倾城">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/sjh42" title="42:p">
|
<a href="https://github.com/sjh42" title="42:p">
|
||||||
<img src="https://avatars.githubusercontent.com/u/34529275?v=4" width="42;" alt="42:p">
|
<img src="https://avatars.githubusercontent.com/u/34529275?v=4" width="42;" alt="42:p">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/LufsX" title="LufsX">
|
|
||||||
<img src="https://avatars.githubusercontent.com/u/33221883?v=4" width="42;" alt="LufsX">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/XYZscratcher" title="XYZ">
|
<a href="https://github.com/XYZscratcher" title="XYZ">
|
||||||
<img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ">
|
<img src="https://avatars.githubusercontent.com/u/108533817?v=4" width="42;" alt="XYZ">
|
||||||
</a>
|
</a>
|
||||||
@ -856,8 +856,8 @@
|
|||||||
<a href="https://github.com/hi-liyan" title="Yan Li">
|
<a href="https://github.com/hi-liyan" title="Yan Li">
|
||||||
<img src="https://avatars.githubusercontent.com/u/40056492?v=4" width="42;" alt="Yan Li">
|
<img src="https://avatars.githubusercontent.com/u/40056492?v=4" width="42;" alt="Yan Li">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/yikuaibro" title="ZhiQiang Li">
|
<a href="https://github.com/yikuaibro" title="YuGan">
|
||||||
<img src="https://avatars.githubusercontent.com/u/44493045?v=4" width="42;" alt="ZhiQiang Li">
|
<img src="https://avatars.githubusercontent.com/u/44493045?v=4" width="42;" alt="YuGan">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/y52y" title="Zyj">
|
<a href="https://github.com/y52y" title="Zyj">
|
||||||
<img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj">
|
<img src="https://avatars.githubusercontent.com/u/51304324?v=4" width="42;" alt="Zyj">
|
||||||
@ -1084,7 +1084,7 @@
|
|||||||
<!--rehype:class=home-card home-links-->
|
<!--rehype:class=home-card home-links-->
|
||||||
<p>如果你有资源,可以很方便<a href="https://github.com/jaywcjlove/reference/issues/102#issue-1451649637">部署 web 版</a>,这非常简单,只需要克隆 <a href="https://github.com/jaywcjlove/reference/tree/gh-pages">gh-pages</a> 分支代码到你的静态服务就可以了,还可以使用 <a href="https://hub.docker.com/r/wcjiang/reference">docker</a> 快捷部署 web 版。</p>
|
<p>如果你有资源,可以很方便<a href="https://github.com/jaywcjlove/reference/issues/102#issue-1451649637">部署 web 版</a>,这非常简单,只需要克隆 <a href="https://github.com/jaywcjlove/reference/tree/gh-pages">gh-pages</a> 分支代码到你的静态服务就可以了,还可以使用 <a href="https://hub.docker.com/r/wcjiang/reference">docker</a> 快捷部署 web 版。</p>
|
||||||
|
|
||||||
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2023/02/20 09:12:10</footer></footer><script src="data.js" defer></script><script src="js/fuse.min.js" defer></script><script src="js/main.js" defer></script><div id="mysearch"><div class="mysearch-box"><div class="mysearch-input"><div><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
|
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2023/02/20 11:08:44</footer></footer><script src="data.js" defer></script><script src="js/fuse.min.js" defer></script><script src="js/main.js" defer></script><div id="mysearch"><div class="mysearch-box"><div class="mysearch-input"><div><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
|
||||||
<path fill="currentColor" d="M17.71,16.29 L14.31,12.9 C15.4069846,11.5024547 16.0022094,9.77665502 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 C9.77665502,16.0022094 11.5024547,15.4069846 12.9,14.31 L16.29,17.71 C16.4777666,17.8993127 16.7333625,18.0057983 17,18.0057983 C17.2666375,18.0057983 17.5222334,17.8993127 17.71,17.71 C17.8993127,17.5222334 18.0057983,17.2666375 18.0057983,17 C18.0057983,16.7333625 17.8993127,16.4777666 17.71,16.29 Z M2,8 C2,4.6862915 4.6862915,2 8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 Z"></path>
|
<path fill="currentColor" d="M17.71,16.29 L14.31,12.9 C15.4069846,11.5024547 16.0022094,9.77665502 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 C9.77665502,16.0022094 11.5024547,15.4069846 12.9,14.31 L16.29,17.71 C16.4777666,17.8993127 16.7333625,18.0057983 17,18.0057983 C17.2666375,18.0057983 17.5222334,17.8993127 17.71,17.71 C17.8993127,17.5222334 18.0057983,17.2666375 18.0057983,17 C18.0057983,16.7333625 17.8993127,16.4777666 17.71,16.29 Z M2,8 C2,4.6862915 4.6862915,2 8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 Z"></path>
|
||||||
</svg><input id="mysearch-input" type="search" placeholder="搜索" autocomplete="off"><div class="mysearch-clear"></div></div><button id="mysearch-close" type="button">搜索</button></div><div class="mysearch-result"><div id="mysearch-menu"></div><div id="mysearch-content"></div></div></div></div></body>
|
</svg><input id="mysearch-input" type="search" placeholder="搜索" autocomplete="off"><div class="mysearch-clear"></div></div><button id="mysearch-close" type="button">搜索</button></div><div class="mysearch-result"><div id="mysearch-menu"></div><div id="mysearch-content"></div></div></div></div></body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user