質問

How to use a different mirror rather than the mirrors in the list?

Well, I mean not only download port.tar from other mirror, like the question here, but also download packages from a different mirror.

I have noticed that when downloading packages, the port just download packages from this link. But I don't know how to change the mirror it get packages from.

役に立ちましたか?

解決

Open /opt/local/etc/macports/archive_sites.conf as root.

Add the following two lines:

    name    local_archives
    urls    http://jog.id.packages.macports.org/macports/packages/

You can also disable all the official archive mirrors by doing like this:

name    macports_archives

name    local_archives
urls    http://jog.id.packages.macports.org/macports/packages/
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top