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.
commented on October 8th, 2007 at 5:45 pm
Wow, never heard of shift-zz. Where’d you learn that, you bastard?
commented on October 8th, 2007 at 10:37 pm
Even Rustem knows that one. Actually someone taught me that in Davis years ago. I still like :wq better though.
commented on March 14th, 2008 at 3:54 pm
[...] Keeping Your FreeBSD Ports Up-to-Date Effortlessly [...]
commented on April 26th, 2008 at 9:20 pm
Why not use portsnap instead of cvsup, aside from the source code syncing that cvsup does.
commented on April 28th, 2008 at 11:20 pm
@QuinnR,
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
.