Upgrading Ports/Packages
Updated: 10/21/2003
General Information
So, you install stuff from ports and then updates are released. How do you upgrade your software without having to uninstall and reinstall? This guide will show you how to use portupgrade.Requirements
/stand/sysinstallInstallation
In order for us to use the upgrade utility, we need to install it first. So, logon to the machine as root or su to root.|
# # |
cd /usr/ports/sysutils/portupgrade make install clean |
Configuration
Now we need to know what packages are out of date and update them. You can either use the portsnap method or the legacy cvsup method. I already use portsnap.| # | portsnap fetch update |
|
# pkg_version apache = cups-base < cvsup-without-gui = daemontools = lynx = m4 = mod_php4 < nano = p5-DBI < p5-Data-ShowTable = p5-Mysql-modules = p5-Net-Daemon = p5-PlRPC = perl < portupgrade = samba = ucspi-tcp = wget = |
|
# pkg_version -L = cups-base < mod_php4 < p5-DBI < perl < |
| # | portupgrade -o /path/to/port port_name |
| # | portupgrade -o /usr/ports/print/cups-base cups-base |
|
# # |
cd /usr/ports whereis port_name |
| # | portupgrade -ra |
Author: Jon LaBass
jon at bsdguides dot org