Speed up installing from ports (howto)

There is a port under ports-mgmt called fastest_sites. This the MASTER_SITE definitions depending on the round-trip time for the tcp connections. The results are sorted by fastest response time and in a format suitable for Makefile.

# cd /usr/ports/ports-mgmt/fastest_sites

# make install

Now let’s generate the sorted list of master sites:

# fastest_sites > /usr/local/etc/ports_sites.conf &

This step may take some time as quite a number of sites have to be checked. In the meantime you can add the following line to /etc/make.conf:

.include "/usr/local/etc/ports_sites.conf"

From: arnolds.se. Originally published by the writer of this python script on semicomplete.com.

Comments

  1. says

    i think it is not speeding up install but instead it is speed up fetch progress by fetching ports from it is root sites as defined in bsd.port.mk if i don’t forget .

Leave a Reply

Your email address will not be published. Required fields are marked *