bsdzone BSDZone - FreeBSD help, how-to guides, and articles.

  [ Home ]   [ Current News ]   [ Howto Archive ]   [ Books ]   [ Search ]   [ Links ]   [ Contact ]  [ About ]  


Upgrade your ports.
Security Tips - 17 Oct 04

How can you upgrade your ports collection?

Tested on FreeBSD 4.10

First check to see if your ports are installed.

#cd /usr/ports
If you get /usr/ports: No such file or directory, then you don’t, so install them first.

If you do then check to see if you have cvsup installed.
#pkg_info | grep cvsup
If you get nothing back, then you don’t have cvsup installed, so
#pkg_add -r cvsup
#pkg_info | grep cvsup

You should see it this time. Now find the provided example supfile.
find /usr -name ports-supfile
cd to the location of the example ports-supfile

vi ports-supfile
goto *default host= and add cvsup#.FreeBSD.org.
example: *default host=cvsup5.FreeBSD.org

now save and exit out of vi, and
#which cvsup

If cvsup is not in the path, try /usr/local/bin or,
#find / -name cvsup

Then,
#/your/path/to/cvsup -g -L 2 ports-supfile

You should see it connecting to the server and updating all your ports, if it complains about maximum users then just change cvsup# to a different server in the ports-supfile, and try again.

All Done.


Leave a Reply