V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ggshiney
V2EX  ›  macOS

中科大的那个macport源怎么配置?

  •  
  •   ggshiney · Sep 22, 2011 · 15640 views
    This topic created in 5331 days ago, the information mentioned may be changed or developed.
    16 replies    2016-01-27 23:40:02 +08:00
    eas
        1
    eas  
       Sep 22, 2011
    我也想知道
    dawn11011
        2
    dawn11011  
       May 29, 2012
    同问
    shadownee
        3
    shadownee  
       Aug 3, 2012
    進入你安裝macports的資料夾 比如官方的dmg裝出來的是/opt/local/etc/macports
    編輯sources.conf
    在最底下加入
    rsync://mirrors.ustc.edu.cn/macports/ports [default]
    注釋掉其他的源
    shadownee
        4
    shadownee  
       Aug 3, 2012
    @shadownee 還需要在macports.conf中
    修改rsync_server為mirrors.ustc.edu.cn
    修改rsync_dir為macports/base/
    ostrichmyself
        5
    ostrichmyself  
       Aug 3, 2012
    thanks!非常好
    fly2never
        6
    fly2never  
       Aug 4, 2012
    怎么没有homebrew的呢...
    sNullp
        7
    sNullp  
       Aug 5, 2012   ❤️ 2
    @fly2never mirrors.ustc管理员路过,估计这两天homebrew镜像就能上线。
    fly2never
        8
    fly2never  
       Aug 5, 2012
    @sNullp
    bitsmix
        9
    bitsmix  
       Aug 5, 2012
    @sNullp 牛逼。
    sNullp
        10
    sNullp  
       Aug 5, 2012   ❤️ 1
    @fly2never
    cd /usr/local
    git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git
    brew update
    我自己测试是正常的,不知道会不会有没注意到的奇怪问题(应该不会有),你们也试试看吧 :)
    fly2never
        11
    fly2never  
       Aug 5, 2012
    @sNullp
    Unable to find 3549c78f9cb4e98a42ef255f28d9ef799201cd69 under http://mirrors.ustc.edu.cn/homebrew.git
    Cannot obtain needed object 3549c78f9cb4e98a42ef255f28d9ef799201cd69
    error: Fetch failed.
    sNullp
        12
    sNullp  
       Aug 6, 2012
    @fly2never 囧,貌似是更新脚本写错了,现在应该没问题了⋯⋯
    fly2never
        13
    fly2never  
       Aug 6, 2012
    @sNullp ok了,突然觉得brew的镜像如果不能把各个包的源代码弄过来,光brew库的加速意义不大......
    sNullp
        14
    sNullp  
       Aug 7, 2012
    @fly2never 我考虑过这个事情,不过工作量比较大(需要我们自己fork出来一个分支来更新其中的rb脚本),也许要等我回国后才能有动机做这个事情吧(不过我用Arch linux的时候用yaourt下源码包编译感觉速度还是可以接受的,现在越来越多开源镜像支持cdn了)。
    allanpk716
        15
    allanpk716  
       May 10, 2014
    @shadownee 想问一下,用你这个说法来更新和直接用mirror的 http://mirrors.ustc.edu.cn/macports/tarballs/ports.tar 来更新,有啥区别,我看前者我更新的时候下载了一堆文件,后者是一个压缩包,他们都需要释放到同一个地方的么?

    好吧,大概就是还需要清理更新缓存什么的不?····
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   971 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 20:17 · PVG 04:17 · LAX 13:17 · JFK 16:17
    ♥ Do have faith in what you're doing.