finds fastest CVSup mirror server for FreeBSD / OpenBSD / NetBSD

browse download directory || download latest || view HTML man page || freshports entry ]



  • uses socket connections (IO::Socket::INET) to connect to remote CVSup port (tcp/5999).
  • recognises and displays server responses.
  • can specify the amount of output the script generates with command line switches
  • returns either top 3 fastest servers or just the fastest (with or without a progress meter), useful for automated scripts.
  • returns error codes, again useful for scripts.
  • connects to FreeBSD servers specified in country groups (eg. uk,fr,de), or to countries defined as 'local' in the script, or to all servers.
  • can obtain an updated list of servers from the FreeBSD Handbook and re-write itself if necessary.
  • can use NetBSD CVSup servers, OpenBSD CVSup servers, or any additional servers you define.


Example shell script to update ports collection:

      if SERVER=`fastest_cvsup -q -c uk,ie,fr,de,fi,no,nl`; then
	cvsup -g -L 2 -h $SERVER /usr/local/etc/cvsup/ports-supfile
SourceForge Logo