lunny
V2EX  ›  macOS

修改 brew 的源节点来加速更新资源列表和下载

  •  
  •   lunny · Oct 23, 2019 · 4856 views
    This topic created in 2579 days ago, the information mentioned may be changed or developed.
    cd /usr/local/Homebrew
    git remote set-url origin https://gitea.com/Homebrew/brew.git
    
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
    git remote set-url origin https://gitea.com/Homebrew/homebrew-cask.git
    
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
    git remote set-url origin https://gitea.com/Homebrew/homebrew-core.git
    
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services
    git remote set-url origin https://gitea.com/Homebrew/homebrew-services.git
    
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions
    git remote set-url origin https://gitea.com/Homebrew/homebrew-cask-versions.git
    
    export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
    
    7 replies  •  2019-10-29 16:43:55 +08:00
    imzcg
    imzcg
    Oct 23, 2019 via Android
    1
    gitee 和清华源哪个快,有感觉吗
    lovestudykid
    lovestudykid
    Oct 24, 2019
    2
    homebrew 没有自己 host 文件,都是到官网链接下载吧?
    chendy
    chendy
    Oct 24, 2019
    3
    http_proxy 解千愁
    liangch
    liangch
    Oct 24, 2019
    4
    git 源建议用原始的。
    1002xin
    1002xin
    Oct 24, 2019
    5
    好代理就完事了,这些源到最后一样坑的是自己
    dif
    dif
    Oct 24, 2019
    6
    function proxy(){
    export http_proxy=http://127.0.0.1:1087;
    export https_proxy=http://127.0.0.1:1087;
    echo -e "梯子模式"
    }
    function unproxy(){
    unset http_proxy
    unset https_proxy
    echo -e "和谐模式"
    }
    binmiui
    binmiui
    Oct 29, 2019
    7
    function proxy(){
    export all_proxy=socks5://127.0.0.1:1086
    echo -e "梯子模式"
    }
    function unproxy(){
    unset all_proxy
    echo -e "和谐模式"
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1009 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:49 · PVG 06:49 · LAX 14:49 · JFK 17:49
    ♥ Do have faith in what you're doing.