Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the mirror of macports

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.

like image 591
Shiva Wu Avatar asked Jan 01 '12 13:01

Shiva Wu


People also ask

Does MacPorts build from source?

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.

How do I know if MacPorts is installed on my Mac?

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.


1 Answers

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/

like image 88
Adclone Avatar answered Oct 08 '22 10:10

Adclone