Created 05 30 05
The FreeBSD Portupgrade Page
In this page, I'll go through the
process of doing the following
Install FreeBSD 5.4 Release
Install source, ports, man, from CD
Install cvsup-witout-gui and portupgrade from CD #2 (packages) or ports
Do a cvsup on the ports and source
Check the index database
Check the package database
Check for outdated installed ports
Upgrade all packages and dependancies
Installing FreeBSD
Get FreeBSD 5.4 ISO's for CD #1 and optionally CD #2 (helpfull as it
contains precompiled packages.)
Boot from CD #1, and choose Custom installation
Select Minimal distribution (smallest configuration possible)
Select Custom and choose man, source (all) and ports
After install , select Visit the general configuration menu make any
last minute changes *
Reboot
Install cvsup-without-gui
#cd /usr/ports/net/cvsup-without-gui
#make install clean
(The compile takes a while, take a break)
Install portupgrade
#cd /usr/ports/sysutils/portupgrade
#make install clean
*If you have CD #2, You can optionally install cvsup-without-gui and
portupgrade
After Installation, Choose Visit the general configuration menu
Choose Packages and browse for them
Configure and run cvsup
You can read up on my cvsup page here
I run a script called update that looks like this
-------------------------------------------------------------------
/usr/local/bin/cvsup -g -L2
./src-supfile
# cvsup the source tree
/usr/local/bin/cvsup -g
-L2
./ports-supfile
# cvsup the ports tree
cd /usr/ports &&
make
fetchindex
# Fetches the index database
/usr/local/sbin/portsdb
-u
# Update or create the ports database file
/usr/local/sbin/pkgdb
-aF
# Automaticaly and Interactively fix the package registry
database
/usr/sbin/pkg_version -v
|grep
'<' >/root/update/cvsup/pkg_version.txt #
Creates
pkg_version.txt, listing outdated installed ports
#/usr/local/sbin/portupgrade
-FarR
# Updrages all packages and dependancies recursively but fetches the
files only
#/usr/local/sbin/portupgrade
-arR
# Upgrades all packages and
dependancies recursively
-------------------------------------------------------------------
Cool eh !