Update freebsd ports collection with cvsup
If you have just installed FreeBSD from CD\DVD, first that you need to do – update ports collection freebsd (update freebsd ports tree) and src files from repositories.
With cvsup update ports collection isn’t difficult. Install cvsup:
#cd /usr/ports/net/cvsup-without-gui/
#make install clean
Copy and edit supfile (I describe only ports tree upfating process. Src updating is looks same):
#cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile
#vim /etc/ports-supfile
Choose nearest mirror for you:
*default host=cvsup3.ua.FreeBSD.org
My ports-supfile looks like:
*default host=cvsup.ua.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all
Save file and give command updating:
#cvsup -g -L 2 /etc/ports-supfile
It is can updating a long time (specially if you have slow internet connection).
When process is finish – you will can calm install soft from the ports.
Posted on September 12th, 2010 by admin
Filed under: Software
csup(1) is set up in essentially the same way, with the added bonus that it is in base
Do not install anything.
Give one command only:
# csup -L 2 -h cvsup3.ua.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
А nearest mirror you can find by next command:
# fastest_cvsup -Qcru