From owner-freebsd-isp@FreeBSD.ORG Fri Jun 6 16:45:16 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7BAC37B401 for ; Fri, 6 Jun 2003 16:45:16 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id A19A443F85 for ; Fri, 6 Jun 2003 16:45:15 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h56NjCTK079809; Fri, 6 Jun 2003 18:45:12 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <007701c32c85$ad9547e0$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: "Lewis Watson" , References: <00f501c32c82$c53e9750$de0a0a0a@vsis169> Date: Fri, 6 Jun 2003 18:45:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-0.6 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT_OE version=2.43 Subject: Re: Updating Ports on Production Servers X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 23:45:16 -0000 From: "Lewis Watson" > I am a big fan of the ports collection and use the ports to build the > programs I use on our production servers. Now I am wanting to update some > ports and have a chicken and egg issue. If I go ahead and update a port > (pure-ftpd for example)... > > After I run "CVSUP portfile" the old version that's running has no > graceful way of being removed. If I try to remove it I am notified that > the version that is running is not on the machine so then I guess force > the uninstall? Either that or just do a make - make install and overwrite > the old port binaries with the new binaries ( this does not seem good > either). > > It appears the only way to cleanly upgrade a port is to deinstall the > current port. Run CVSUP portfile... and get the new port files... do a > make - make install and get the new version of the port installed. This > opens the machine to several minutes of downtime while the program is > being made... (not good either) > > Please tell me the way that it's being handled on your servers/ network... First you need to CVSUP your ports collection to update it, then you have two ways to upgrade the port: 1. Use the old upgrade method: a. cd /usr/ports// b. make build c. pkg_delete - d. make install Disadvantage: - Doesn't update the dependencies of the port. - Requires you to remove and reinstall all ports that depend on the port your installing. or 2. Use sysutils/portupgrade Advantage: - Upgrades dependencies for the port your installing. - Upgrades all ports that depend on the port your installing (and any port that had their dependencies updated) Scot