[MacPorts] #73380: How do I use a specific mirror?

MacPorts noreply at macports.org
Fri Jan 9 18:39:46 UTC 2026


#73380: How do I use a specific mirror?
-------------------------+--------------------
  Reporter:  CGamesPlay  |      Owner:  (none)
      Type:  request     |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------

Comment (by jmroot):

 You can't only use a single mirror since not every mirror may have a given
 file. Only use archive_sites.conf if you want to add a new mirror that
 isn't in the official list.

 What you probably want to do is prioritise certain mirrors, which can be
 done by setting preferred_hosts in macports.conf. For example:
 {{{
 preferred_hosts    *.cn.*.macports.org
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/73380#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list