This article describes how to install portupgrade, a tool used to easily download and uograde any ports that you have installed in your FreeBSD computer. It works with version 4.xx as well.
- Log in as root
- cd /usr/ports/sysutils/portupgrade
- Type ‘make install clean’
- Type ‘vi /usr/local/etc/periodic/daily/900.packageinfo’
#!/bin/sh
echo
echo “Downloading Ports Collection via CVS”
if SERVER=`/usr/local/bin/fastest_cvsup –Q –c uk,at,dk,fl,fr,de,ie,nl,no,se,ch`; then
/usr/local/bin/cvsup –g –h $SERVER –L 1 –z /usr/local/etc/ports-supfile
Echo “List out of date ports”
/usr/sbin/pkg_version –v –L ‘=’
exit $rc
- Type ‘/usr/local/etc/periodic/daily/900.packaginfo’
- Type ‘rehash’
- Type ‘portupgrade –ra’ – gettext needs updating at the least.