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. -- ----------------------------------------------------------------- FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006 ///////////////////////////////////////////////////////////////// -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: PGP Digital Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060515/f5aa9888/attachment.pgp
Quoting "Chris H." <fbsd@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. -- ----------------------------------------------------------------- FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006 ///////////////////////////////////////////////////////////////// -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: PGP Digital Signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060516/d29c8c0f/attachment-0001.pgp
Chris H. wrote:> Quoting "Chris H." <fbsd@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 exit Read pre-update-all and fix potential conflicts script update-all portupgrade -aFR portupgrade -a exit 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 different 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@greenmeadow.ca