Home
HowTo update your ports collection using CVSup
- Details
- Category: FreeBSD
- Published on Friday, 27 January 2012 16:56
- Written by John Sullivan
This article describes how to set up CVSup to download the latest ports collection from the FreeBSD cvsup servers.
- Log in as root
- Type ‘vi /usr/local/etc/ports-supfile’
- Enter (press ‘i’):
*default host=cvsup3.uk.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
ports-all - Type ‘:wq’ to save and exit
- Type ‘cd /usr/ports/net/cvsup-without-gui’
- Type ‘make install clean’
- [OK] – Options for gettext 0.14.1 (select nothing)
- Type ‘cd /’
- Type ‘rm –r /usr/ports’ – to ensure that files are removed as well as added automatically to ports tree
- Type ‘rehash’
- Type ‘mkdir /usr/local/etc/periodic’
- Type ‘mkdir /usr/local/etc/periodic/daily’
- Type ‘mkdir /usr/local/etc/periodic/weekly’
- Type ‘mkdir /usr/local/etc/periodic/monthly’
- Type ‘vi /usr/local/etc/periodic/daily/900.packageinfo’
#!/bin/sh
echo
echo “Downloading Ports Collection via CVS”
/usr/local/bin/cvsup –g –L 1 –z /usr/local/etc/ports-supfile
exit $rc - Type ‘chmod +x /usr/local/etc/periodic/daily/900.packageinfo’
- Type ‘/usr/local/etc/periodic/daily/900.packaginfo’
