{"id":177329,"date":"2020-10-27T01:29:04","date_gmt":"2020-10-26T17:29:04","guid":{"rendered":"http:\/\/4563.org\/?p=177329"},"modified":"2020-10-27T01:29:04","modified_gmt":"2020-10-26T17:29:04","slug":"updating-homebrew-%e5%8d%a1%e4%bd%8f%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=177329","title":{"rendered":"Updating Homebrew \u5361\u4f4f\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Updating Homebrew \u5361\u4f4f\u7684\u89e3\u51b3\u65b9\u6848               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wsgzao <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u6362\u4e86 MacBook 16 \u5bf8\u7684\u7535\u8111\u6b63\u597d\u5728\u4f7f\u7528 brew \u5b89\u88c5\u4e00\u4e9b\u5e94\u7528\uff0c\u53d1\u73b0\u4e00\u4e2a\u5c0f\u95ee\u9898\u662f\u6bcf\u6b21\u6267\u884c\u5982<code>brew install ansible<\/code>\u547d\u4ee4\u505c\u7559\u5728<code>Updating Homebrew...<\/code>\u7684\u65f6\u95f4\u7279\u522b\u957f\uff0c\u5728\u65b0\u52a0\u5761\u7406\u8bba\u4e0a\u5e94\u8be5\u548c\u7f51\u7edc\u65e0\u5173\uff0c\u6700\u540e\u6309\u7167\u7f51\u7edc\u4e0a\u7684\u65b9\u6848\u9009\u62e9\u5173\u95ed\u6bcf\u6b21\u68c0\u67e5\u66f4\u65b0\u89e3\u51b3\u3002<\/p>\n<h2>\u66f4\u65b0\u5386\u53f2<\/h2>\n<p>2020 \u5e74 10 \u6708 13 \u65e5 &#8211; \u521d\u7a3f<\/p>\n<p>\u9605\u8bfb\u539f\u6587 &#8211; https:\/\/wsgzao.github.io\/post\/homebrew-update\/<\/p>\n<h2>Homebrew \u5173\u95ed\u81ea\u52a8\u66f4\u65b0<\/h2>\n<p>\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u5173\u95ed Homebrew \u81ea\u52a8\u66f4\u65b0\u89e3\u51b3 Updating Homebrew \u65b9\u6cd5\u6700\u7b80\u5355<\/p>\n<pre><code># \u5361\u5728 Updating Homebrew \u597d\u4e45 brew install ansible Updating Homebrew...  # \u5173\u95ed\u81ea\u52a8\u66f4\u65b0\uff0c\u5728.zshrc \u6587\u4ef6\u4e2d\u52a0\u5165\u4e0b\u65b9\u547d\u4ee4\uff0c\u5982\u679c\u662f bash \u8bf7\u52a0\u5728.bash_profile \u6587\u4ef6\u4e2d\uff0c\u5168\u5c40\u53d8\u91cf\u53ef\u4ee5 sudo vi \/etc\/profile vim ~\/.zshrc export HOMEBREW_NO_AUTO_UPDATE=true  # \u5237\u65b0\u73af\u5883\u53d8\u91cf source ~\/.zshrc <\/code><\/pre>\n<h2>Homebrew \u955c\u50cf\u6e90\u52a0\u901f<\/h2>\n<p>\u6211\u4eec\u5e73\u65f6\u6267\u884c brew \u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u8ddf\u8fd9\u4e09\u4e2a\u4ed3\u5e93\u6709\u5173\uff1a<\/p>\n<ol>\n<li>brew.git<\/li>\n<li>homebrew-core.git<\/li>\n<li>homebrew-bottles<\/li>\n<\/ol>\n<p>\u4f7f\u7528\u963f\u91cc\u6216\u8005\u6e05\u534e\u7684 Homebrew \u955c\u50cf\u6e90\u4ee3\u66ff\u53ef\u4ee5\u8fdb\u884c\u52a0\u901f<\/p>\n<p>https:\/\/mirrors.aliyun.com\/homebrew\/<\/p>\n<p>https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/homebrew\/<\/p>\n<pre><code># \u66ff\u6362 brew.git cd \"$(brew --repo)\" git remote set-url origin https:\/\/mirrors.aliyun.com\/homebrew\/brew.git  # \u66ff\u6362 homebrew-core.git cd \"$(brew --repo)\/Library\/Taps\/homebrew\/homebrew-core\" git remote set-url origin https:\/\/mirrors.aliyun.com\/homebrew\/homebrew-core.git  # \u66ff\u6362 homebrew-bottles \u8bbf\u95ee\u5730\u5740 echo 'export HOMEBREW_BOTTLE_DOMAIN=https:\/\/mirrors.aliyun.com\/homebrew\/homebrew-bottles' &gt;&gt; ~\/.zshrc source ~\/.zshrc  <\/code><\/pre>\n<pre><code># \u8fd8\u539f brew.git cd \"$(brew --repo)\" git remote set-url origin https:\/\/github.com\/Homebrew\/brew.git  # \u8fd8\u539f homebrew-core.git cd \"$(brew --repo)\/Library\/Taps\/homebrew\/homebrew-core\" git remote set-url origin https:\/\/github.com\/Homebrew\/homebrew-core.git  # \u8fd8\u539f\u7684\u8bdd\u5c31\u662f\u5220\u9664 HOMEBREW_BOTTLE_DOMAIN\uff0c\u4e0a\u9762\u7684\u662f zsh \u7684\u547d\u4ee4\uff0c\u5982\u679c\u662f bash \u7684\u8bdd\u8bf7\u5199\u5728.bash_profile \u6587\u4ef6\u4e2d\u3002 <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>17<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3924068\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f00\u4ee3\u7406\u9ed8\u79d2\u5168\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924069\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : k3Sv1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e2\u7136\u4f60\u5728\u65b0\u52a0\u5761\u7528\u56fd\u5185\u955c\u50cf\u5c45\u7136\u66f4\u5feb\uff1f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924070\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wsgzao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @k3Sv1 #2 \u6211\u987a\u624b\u8bb0\u5f55\u4e0b\u56fd\u5185\u7528\u6237\u4fee\u6539\u955c\u50cf\u7684\u6b65\u9aa4\u4e86\uff0c\u7f51\u4e0a\u53c2\u8003\u8d44\u6599\u6709\u90e8\u5206\u65e0\u6548\u4fe1\u606f\uff0c\u6211\u6d4b\u8bd5\u4e86\u4e00\u8f6e\u7136\u540e\u66f4\u65b0\u5230 Blog \u91cc\uff0c\u653e\u4e86\u6e05\u534e\u548c\u963f\u91cc 2 \u7ec4\u539f\u59cb\u8fde\u63a5\u505a\u4e3b\u5907\uff0c\u5e0c\u671b\u5bf9\u5404\u4f4d\u6709\u5e2e\u52a9\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924071\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : monstervivi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f7f\u7528\u8fc7\u955c\u50cf\u6e90\uff0c\u4f46\u6709\u65f6\u5019\u8fd8\u662f\u4f1a\u5361\u4f4f\uff0c\u4e4b\u540e\u901a\u8fc7\u4ee3\u7406\u65b9\u5f0f\u89e3\u51b3\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924072\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dingdangnao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ffb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924073\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 1002xin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66f4\u6362\u955c\u50cf\u6e90\u5c31\u7b97\u4e86\uff0c\u9760\u8c31\u7684\u4ee3\u7406\u624d\u662f\u6b63\u9053                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924074\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Tumblr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u80fd\u7528 sudo brew \u4e5f\u662f\u4e2a\u86cb\u75bc\u7684\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924075\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dapang1221 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a Updating Homebrew \u53ef\u4ee5\u7528 ctrl+c \u8df3\u8fc7\u7684\uff0c\u5b83\u4e0d\u53ea\u662f\u4ece\u6e90\u8bf7\u6c42\u66f4\u65b0\uff0c\u8fd8\u4f1a\u626b\u7f13\u5b58\u7684\u5305                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : miyunda <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chendy \u8fd9\u4e2a\u4e0e\u4ee3\u7406\u4e0d\u4ee3\u7406\u5173\u7cfb\u4e0d\u5927\u5427\uff1f\u6211\u5f00\u7740\u5168\u5c40\u4ee3\u7406\u4e5f\u8fd9\u6837                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : devjia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9876\u4e00\uff0c\u4f18\u8d28\u7684\u4ee3\u7406\u53ef\u4ee5\u907f\u514d\u955c\u50cf\u7684\u5404\u79cd\u5947\u8469\u95ee\u9898\u3002<\/p>\n<p>\u6709\u7684\u540c\u5b66\u8bf4\u5168\u5c40\u4ee3\u7406\u4e0d\u751f\u6548\uff0c\u4e00\u822c\u662f\u7531\u4e8e\u9700\u8981\u5355\u72ec\u7ed9\u547d\u4ee4\u884c\u8bbe\u7f6e socket \u4ee3\u7406\uff0c\u6216\u8005\u4f7f\u7528\u5e26\u865a\u62df\u7f51\u5361\u529f\u80fd\u7684\u4ee3\u7406\u8f6f\u4ef6\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924078\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : devjia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @devjia \u62b1\u6b49\uff0c\u9700\u8981\u7ea0\u6b63\u4e00\u4e0b\uff0csocks \u4ee3\u7406\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LabJo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             clashX pro \u589e\u5f3a\u6a21\u5f0f\uff0c\u65e0\u75db\u4ee3\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tenngoxars <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/bin\/zsh -c &#8220;$(curl -fsSL https:\/\/gitee.com\/cunkai\/HomebrewCN\/raw\/master\/Homebrew.sh)&#8221;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Stlin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             alias goproxy=&#8221;export http_proxy=http:\/\/127.0.0.1:1087 https_proxy=http:\/\/127.0.0.1:1087&#8243;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @miyunda \u6709\u7684\u5730\u65b9\u662f\u4e0d\u8d70\u7cfb\u7edf\u4ee3\u7406\u7684\uff0c\u6bd4\u5982\u7ec8\u7aef\u91cc\u5c31\u8981\u81ea\u5df1 export http_proxt=xxxx                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lbyo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chendy #14 TUN \u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5 export                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3924084\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ettingshausen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             !HOMEBREW_NO_AUTO_UPDATE=1 brew install \u6765\u4ee3\u66ff brew install<br \/>\u547d\u4ee4\u592a\u957f\u4e86\uff0c\u53ef\u4ee5\u4f7f\u7528 alias \u3002<br \/>alias \u8fd9\u4e2a\u6307\u4ee4\u4e0d\u662f Homebrew \u81ea\u5e26\u7684\u3002\u9996\u5148\u9700\u8981 tap \u4e00\u4e2a\u5b98\u65b9\u4ed3\u5e93\u300c homebrew-aliases \u300d\u3002<br \/> brew tap homebrew\/homebrew-aliases<br \/>\u8bbe\u7f6e alias\uff1a<br \/> brew alias i=&#8217;!HOMEBREW_NO_AUTO_UPDATE=1 brew install&#8217;<\/p>\n<p>\u514d update \u5b89\u88c5 yarn\uff1a<br \/> brew i yarn                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Updating Homebrew&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/177329"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177329"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/177329\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177329"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}