BSD Stuff
Updating FreeBSD
14 September 2006, 01:01
- 1
- 2
Now that the kernel and userland is updated we can move on to the ports.
Updating the /usr/ports/ tree is just as easy as the /usr/src tree. Again we copy a supfile over and make a few changes to it.
# cp /usr/share/examples/cvsup/ports-supfile ~/# vim ~/ports-supfile
| # | Code |
|---|---|
| 0001 | *default host=cvsup.de.freebsd.org |
| 0002 | *default base=/var/db |
| 0003 | *default prefix=/usr |
| 0004 | *default release=cvs tag=. |
| 0005 | *default delete use-rel-suffix |
| 0006 | |
| 0007 | *default compress |
| 0008 | |
| 0009 | ports-all |
| 0010 |
After that is done we can fire up cvsup and update the /usr/ports/.
# cd /usr/ports/# cvsup -g -L 2 /path-to-supfile# make fetchindex# pkgdb -fu
NOTE: Read the /usr/ports/UPDATING file, there might be very important notes about the ports that needs to be updated.
Next we create a file so we can see which ports needs to be updated.
# portversion -vL = > ~/ports.txt
To upgrade the ports all at once run
# portupgrade -arR
To upgrade the ports one by one use this. I personally like upgrading my ports one by one.
# portupgrade -rR <out_of_date_port>
After all your ports are up to date we can start with the cleaning.
# pkgdb -Fv# portsclean -CDD
That should be it
Page 2 of 2