Installing FreeBSD 7

Update Ports Collection / Upgrade installed ports on your system

# autoconf
cd /usr/ports/devel/autoconf262
make install clean



# automake
cd /usr/ports/devel/automake19
make install clean

# New Way = Portmanager utility for upgrading all installed ports (use this after you run portsnap)
cd /usr/ports/ports-mgmt/portmanager
make install clean
# Upgrade all installed ports! Run this periodically!
/usr/local/bin/portmanager -u

# Sample config file if you need to make exceptions or exclusions during automatic updates
# /usr/local/etc/portmanager/pm-020.conf.SAMPLE
 

 

 

# Or the old way to keep your ports tree updated via "cvsup-without-gui" and "portupgrade"
# Overview: CVS Update Tool
sysinstall --> configure --> packages --> net --> cvsup-without-gui
cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile
# Edit the configuration file that tells cvsup exactly what to update
vi /etc/ports-supfile
# Change: *default host=CHANGE_THIS.FreeBSD.org to *default host=cvsup3.us.FreeBSD.org
# Update your ports collection!
/usr/local/bin/cvsup /etc/ports-supfile

# Here are the steps with screen captures if you need to use cvsup to keep your ports tree up to date
# 1 - Log in as root

# 2 - Type: sysinstall

# 3 - Select "Configure"

# 4 - Select "Distributions"

# 5 - Selects "ports"

# 6 - Select "FTP"

# 7 - Select "Primary"

# 8 - Select "Yes"

# 9 - Watch the ports tree download

# 10 - Select "Packages"

# 11 - Select "net"

# 12 - Select "cvsup-without-gui"

#13 - Select "Install"

# 14 - Select "OK"

# 15 - Select "Primary"

# 16 - Select "Yes"

# 17 - Watch cvsup-without-gui download

# 18 - Select "Exit"

# 19 - Select "Exit Install"

# 20 - Copy the example ports-sup-file
cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile

# 21 - Edit /etc/ports-supfile
vi /etc/ports-supfile
# Change: *default host=CHANGE_THIS.FreeBSD.org to *default host=cvsup3.us.FreeBSD.org
# Save the file (hit ESC ESC :wq!)

# 22 - Launch the update tool
/usr/local/bin/cvsup /etc/ports-supfile

# 23 - If you have Internet access with TCP Port 5999 outbound open, sit back and watch the update!

# This old method using "portupgrade" has been replaced in my opinion with a newer "portmanager"
# Utility for upgrading ports (use this after you run portsnap)
cd /usr/ports/sysutils/portupgrade
make install clean
# Upgrade outdated ports
/usr/local/sbin/portupgrade -a
/usr/local/sbin/pkgdb -F
/usr/local/sbin/portupgrade -a

# Optional - Periodically clean up old installation files to recover wasted space on your system
# Clean all of ports
/usr/local/sbin/portsclean -C

# Delete all distribution files
/usr/local/sbin/portsclean -D