V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qeqv
V2EX  ›  Homebrew

没有设置 Homebrew 清华源, brew 却从清华源下载?

  •  
  •   qeqv · 286 天前 · 1480 次点击
    这是一个创建于 286 天前的主题,其中的信息可能已经有所发展或是发生改变。

    过程

     % brew search iina
    ==> Formulae
    inja
    
    ==> Casks
    iina                                                                                                            iina-plus
    
     % brew install iina
    ==> Downloading https://dl-portal.iina.io/IINA.v1.3.2.dmg
    ==> Downloading from https://mirrors.tuna.tsinghua.edu.cn/iina/IINA.v1.3.2.dmg
    ######################################################################################################################################################################################################################## 100.0%
    ==> Installing Cask iina
    ==> Moving App 'IINA.app' to '/Applications/IINA.app'
    ==> Linking Binary 'iina-cli' to '/usr/local/bin/iina'
    🍺  iina was successfully installed!
    

    查看 brew 配置

     % brew config
    HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository)
    ORIGIN: (none)
    HEAD: (none)
    Last commit: never
    Core tap origin: https://github.com/Homebrew/homebrew-core
    Core tap HEAD: (none)
    Core tap last commit: never
    Core tap branch: (none)
    Core tap JSON: 15 Jul 17:28 UTC
    HOMEBREW_PREFIX: /usr/local
    HOMEBREW_API_AUTO_UPDATE_SECS: 86400
    HOMEBREW_CASK_OPTS: []
    HOMEBREW_MAKE_JOBS: 4
    Homebrew Ruby: 2.6.10 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
    CPU: quad-core 64-bit broadwell
    Clang: N/A
    Git: N/A
    Curl: 7.87.0 => /usr/bin/curl
    macOS: 12.6.7-x86_64
    CLT: N/A
    Xcode: N/A
    
     % brew tap
    elastic/tap
    gcenx/wine
    homebrew/cask
    homebrew/core
    homebrew/services
    

    属实给我整不会了

    仔细想想以前有可能临时用过清华的源,但是并没有配置环境变量啊

    8 条回复    2023-07-16 14:06:37 +08:00
    mokeyjay
        1
    mokeyjay  
       286 天前
    也有可能是 Homebrew 内置了清华源?就像 ubuntu 那样
    ericwood067
        2
    ericwood067  
       286 天前
    @mokeyjay 应该没有内置清华源,我一直用 brew ,从没走过清华源。
    butanediol2d
        3
    butanediol2d  
       286 天前 via iPhone   ❤️ 1
    应该只是 https://dl-portal.iina.io/IINA.v1.3.2.dmg 重定向到清华源了吧。而且这个清华源是 iina 的不是 homebrew 的镜像。
    Leon406
        4
    Leon406  
       286 天前

    看源码吧

    dl-portal.iina.io 会重定向到清华镜像
    Leon406
        5
    Leon406  
       286 天前   ❤️ 1
    https://dl-portal.iina.io 进行了负载均衡国内走 mirrors.tuna.tsinghua.edu.com, 国外走 dl.iina.io


    zx945
        6
    zx945  
       286 天前
    @Leon406 截图上的这个是什么软件
    CEBBCAT
        7
    CEBBCAT  
       286 天前
    有没有一种可能,是 dl-portal.iina.io 给你重定向到了 mirrors.tuna.tsinghua.edu.cn
    Leon406
        8
    Leon406  
       286 天前
    @zx945 #6 自己写的软件 ToolsFx, 个人主页有放人 github 地址
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2894 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.