View Single Post
Old 22nd July 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

Quote:
Originally Posted by jaymax View Post
Think I found the answers in
http://www.onlamp.com/pub/a/bsd/2003...SD_Basics.html

Run cvsup to sync the ports tree.
Run portsdb to update INDEX.db.
Use portversion to determine which applications need upgrading.
Use portupgrade to upgrade those applications.
That article is 5 years old and unfortunately none/little of the information is still particularly correct.

Don't use cvsup to sync ports; use csup. It's included in the base install of FreeBSD-6.2+/FreeBSD-7.0+. It works exactly like cvsup.

Better yet, don't even use csup, but use portsnap. Examples:
For the first time you ever run portsnap (this will take a while):
Code:
# portsnap fetch extract
For future updates, you can run the much faster:
Code:
# portsnap fetch update
This is far faster than c[v]sup and uses much less bandwidth.


In terms of portupgrade, I don't recommend using it. I don't even have it on my system and haven't for quite some time. Its database is slow and breaks easily. Use portmaster, I've never had it complain about "broken dependencies." See ports-mgmt/portmaster, and issue:
Code:
# portmaster -uad
and see how easy life can be.

In short, here is everything I do to update my ports tree:
Code:
# portsnap fetch update
# portmaster -uad
And then I go have a tea.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.

Last edited by Weaseal; 22nd July 2008 at 06:39 AM.
Reply With Quote