{"id":510,"date":"2025-02-07T11:49:19","date_gmt":"2025-02-07T03:49:19","guid":{"rendered":"https:\/\/www.cnmiss.cn\/?p=510"},"modified":"2025-02-07T12:22:40","modified_gmt":"2025-02-07T04:22:40","slug":"mac%e7%ab%af%e7%9a%84%e7%a5%9e%e5%99%a8%ef%bc%8chomebrew%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.cnmiss.cn\/?p=510","title":{"rendered":"Mac\u7aef\u7684\u795e\u5668\uff0chomebrew\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u67e5\u770bbrew\u955c\u50cf\u6e90<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>git -C &#8220;$(brew &#8211;repo)&#8221; remote -v<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u67e5\u770bhomebrew-core\u955c\u50cf\u6e90<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>git -C &#8220;$(brew &#8211;repo homebrew\/core)&#8221; remote -v<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u67e5\u770bhomebrew-cask\u955c\u50cf\u6e90\uff08\u9700\u8981\u5b89\u88c5\u540e\u624d\u80fd\u67e5\u770b\uff09<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>git -C &#8220;$(brew &#8211;repo homebrew\/cask)&#8221; remote -v<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u66ff\u6362brew.git:<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>cd &#8220;$(brew &#8211;repo)&#8221;<br>git remote set-url origin https:\/\/mirrors.ustc.edu.cn\/brew.git<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u66ff\u6362homebrew-core.git:<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>cd &#8220;$(brew &#8211;repo)\/Library\/Taps\/homebrew\/homebrew-core&#8221;<br>git remote set-url origin https:\/\/mirrors.ustc.edu.cn\/homebrew-core.git<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u66ff\u6362homebrew-cask.git:<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>cd &#8220;$(brew &#8211;repo)\/Library\/Taps\/homebrew\/homebrew-cask&#8221;<br>git remote set-url origin https:\/\/mirrors.ustc.edu.cn\/homebrew-cask.git<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e94\u7528\u751f\u6548<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>brew update<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u66ff\u6362homebrew-bottles:<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>echo &#8216;export HOMEBREW_BOTTLE_DOMAIN=https:\/\/mirrors.ustc.edu.cn\/homebrew-bottles&#8217; &gt;&gt; ~\/.bash_profile<br>source ~\/.bash_profile<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u7248\u672c\u53f7\uff1abrew -v<br>\u66f4\u65b0\uff1abrew update<br>\u672c\u5730\u8f6f\u4ef6\u5e93\u5217\u8868\uff1abrew list<br>\u67e5\u770b\u8f6f\u4ef6\u5e93\u7248\u672c\uff1abrew list &#8211;versions<br>\u67e5\u627e\u8f6f\u4ef6\u5305\uff1abrew search xxx \uff08xxx\u4e3a\u8981\u67e5\u627e\u8f6f\u4ef6\u7684\u5173\u952e\u8bcd\uff09<br>\u5b89\u88c5\u8f6f\u4ef6\uff1abrew cask install xxx\uff08xxx\u4e3a\u8f6f\u4ef6\u540d\u79f0\uff09<br>\u5378\u8f7d\u8f6f\u4ef6\uff1abrew cask uninstall xxx<br>\u67e5\u627e\u8f6f\u4ef6\u5b89\u88c5\u4f4d\u7f6e\uff1awhich xxx \uff08xxx\u4e3a\u8f6f\u4ef6\u540d\u79f0\uff09<br>\u6e05\u7406\u6240\u6709\u65e7\u7248\u672c\u5305\uff1abrew cleanup<br>\u5217\u51fa\u6240\u6709\u65e7\u7248\u672c\u5305\uff1abrew cleanup -n<br>\u67e5\u770b\u4e00\u5b89\u88c5\u8f6f\u4ef6\u7684\u4f9d\u8d56\uff1abrew deps -installed &#8211;tree<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770bbrew\u955c\u50cf\u6e90 git -C &#8220;$(brew &#8211;re &hellip; <a href=\"https:\/\/www.cnmiss.cn\/?p=510\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[69],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-xxbj","tag-mac"],"_links":{"self":[{"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=510"}],"version-history":[{"count":11,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cnmiss.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}