How to make a local mirror myself?

Lawrence Velázquez larryv at macports.org
Tue Jul 16 18:46:52 PDT 2013


On Jul 16, 2013, at 9:27 PM, yi lu <zhiwudazhanjiangshi at gmail.com> wrote:

> I was able to sync all the files from here. 
> 
> But I am confused that how I can use them.
> 
> I found it is possible to use 
> sudo port selfupdate
> to fetch the ports.tar
> 
> But I have no idea how to configure so that macports will fetch packages from a given url holding all packages, which is the place where I put my downloaded packages.
> 
> Can you help me with this?

Add an entry to your archive_sites.conf file, which is located in ${prefix}/etc/macports. The comments in that file should give you a good idea of what to put down.

If you want to use *only* your local archive source, you'll have to disable the default MacPorts sources. This is also described in the comments.

vq


More information about the macports-dev mailing list