Subscribe via

Keeping BSD Ports Up-to-date Effortlessly

If you don’t have ‘cvsup’ installed, do so by following the tutorial on Open Addict (section: Rebuild the World, and Recompile the Kernel):

Since all you have to do to update your ports is run the command:

cvsup -g -L 2 /root/ports-supfile

Just stick that command in your crontab and make it run every midnight.

crontab -e # This opens the crontab in the vi editor.

Add this line to the crontab:

0 0 * * * /usr/local/bin/cvsup -g -L 2 /root/ports-supfile

Shift+zz to save and you are done.

This it one of the reasons why I love Unix. With little thought, everything is script-able and customizable.

5 Responses to “Keeping BSD Ports Up-to-date Effortlessly”

[go to last comment]
  1. Archon810

    Wow, never heard of shift-zz. Where’d you learn that, you bastard?

  2. Ty Bone

    Even Rustem knows that one. Actually someone taught me that in Davis years ago. I still like :wq better though.

  3. Recapping: Setting up a FreeBSD 6.2 Web Server « OMNINOGGIN

    […] Keeping Your FreeBSD Ports Up-to-Date Effortlessly […]

  4. QuinnR

    Why not use portsnap instead of cvsup, aside from the source code syncing that cvsup does.

  5. Ty Bone


    That’s actually the only reason I like using cvsup, because I use it to sync my OS source code also. portsnap does operate with compression so you will probably save bandwidth that way. If you are just updating your ports tree, then portsnap is the way to go :).

[go to first comment]