I'm a newbie to OS X, and totally confused about the way macports works.
My question is, how to change the mirror or the sites where macports download the portfiles and distfiles.
The mirror I'm trying to use: http://mirrors.ustc.edu.cn/macports/
Should I change the sources.conf? But this mirror has no rsync protocol(I'm not really clear about what rsync protocol is >_<).
Or should I configure the macports.conf?
I know about the macports offical guide, but I'm not smart enough to figure this out.
Can anybody help me?
Thanks.
Version 2.0, released in 2011, introduced support for prebuilt binary archives; by default ports are installed using the prebuilt binary archive if available, and are built from source otherwise. as of August 2022, MacPorts has over 29,700 ports and best-effort support can be sourced from the community.
Confirm that MacPorts is installed by typing "which port" and verifying that it returns /opt/local/bin/port. If not, see below on adding the MacPorts bin to your shell path.
As per the documentation: https://trac.macports.org/wiki/Mirrors
The URL used to get Portfiles is set in ${prefix}/etc/macports/sources.conf
If you are new to OS X and/or MacPorts, please consider reading the introductory guide: http://guide.macports.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With