1

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.

Many thanks!

I will appreciate every answer or comment.

6
  • Duplicate: stackoverflow.com/questions/8693375/… Jul 11, 2013 at 20:24
  • 1
    @KeithSmiley If it is duplicate, I would not ask it again. The ustc mirror has only the ports files, but I am asking a different question. You can check the links in my question to know it is not DUPLICATE. Thanks for your comment.
    – eccstartup
    Jul 11, 2013 at 23:29
  • That SO question and superuser.com/questions/473186/… will work for any mirror just use the path. But Macports is only on the mirrors on that list - where do you want to read it from
    – mmmmmm
    Jul 16, 2013 at 23:20
  • @Mark From a computer in my University. I am to setup a mirror for me and other students. A case as I have noticed is that, even if I have downloaded the tar.gz or zip file and I put it in the right location, It will also download from the given mirror.
    – eccstartup
    Jul 17, 2013 at 0:17
  • 1
    If you have a mirror like that then just rsync the whole lot or ask the system administrators how they maintain the computers and use that tool
    – mmmmmm
    Jul 17, 2013 at 0:38

1 Answer 1

2

I guess you wanted to use a mirror for the binary archive , while the linked question on Stack Overflow is only about the port metadata. So instead of looking at /opt/local/etc/macports/sources.conf, you should be looking at archive_sites.conf under the same folder. The default content of that file is at GitHub; see the file comments for usage.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .