Upgrading question (issue?) - was:(no subject)

Duane Whitty duane at greenmeadow.ca
Mon May 15 17:32:13 PDT 2006

Chris H. wrote:
> Quoting "Chris H." <fbsd at 1command.com>:
> Hello,
> I have a question as to accomplishing an upgrade of *only* what ports I
> already have installed. That is to say; I somewhat frequently suck down
> the latest source for system and ports for the release I run on my 
> servers
> (RELENG_5_4 - soon to be 5_5) and usually rebuildworld/ kernel, and 
> *painfully*
> the ports I already have installed. Which brings me to my issue; Is there
> any way to rebuild (upgrade) the ports I already have installed, and 
> *only*
> the ports I already have installed? I have recently discovered 
> portmaster.
> Which is heads-and-tails over portupgrade. But (from my personal 
> knowlede/
> experience) it doesn't provide a "one shot" command/ option to achieve my
> desired goal. Many times while upgrading one of the ports, it will fail
> during installation with the "HEY! this port is already installed! You 
> may
> wish to cd to the ports directory and execute port deinstall, then port
> reinstall" What?! I'm *upgrading* (or at least trying) this port. :\
> Anyway, thank you for all your time and consideration.
> --Chris H.
Hi Chris,

Does portupgrade -a not work for you?

Actually, I've been thinking maybe the better way to accomplish
this goal is:

Read /usr/ports/UPDATING
pkgdb -F
script pre-update-all
portupgrade -an
Read pre-update-all and fix potential conflicts
script update-all
portupgrade -aFR
portupgrade -a
Read update-all for special instructions that went by during upgrade.

As for the problem with a port utility telling you to deinstall a previous
version,  I've run into this as well.  The problem is that the upgrade tools
upgrade versions of the same application.  They can't upgrade across 
editions of a port.  As an example, Apache 1.35 to Apache 2.2.  Ports 
treat them
as different applications.  I think all the port utilities do this.

Best Regards,

Duane Whitty
duane at greenmeadow.ca

More information about the freebsd-stable mailing list