From owner-freebsd-isp@FreeBSD.ORG Fri Jun 6 16:37:37 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 4625F37B401 for ; Fri, 6 Jun 2003 16:37:37 -0700 (PDT) Received: from mail.lambertfam.org (www.lambertfam.org [216.223.208.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C21C43F85 for ; Fri, 6 Jun 2003 16:37:36 -0700 (PDT) (envelope-from lambert@lambertfam.org) Received: from laptop.lambertfam.org (laptop.int.lambertfam.org [10.1.0.2]) by mail.lambertfam.org (Postfix) with ESMTP id B10C334D24 for ; Fri, 6 Jun 2003 19:37:33 -0400 (EDT) Received: by laptop.lambertfam.org (Postfix, from userid 1000) id 40D4789DD; Fri, 6 Jun 2003 19:37:28 -0400 (EDT) Date: Fri, 6 Jun 2003 19:37:28 -0400 From: Scott Lambert To: freebsd-isp@FreeBSD.ORG Message-ID: <20030606233728.GA1005@laptop.lambertfam.org> Mail-Followup-To: freebsd-isp@FreeBSD.ORG References: <00f501c32c82$c53e9750$de0a0a0a@vsis169> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00f501c32c82$c53e9750$de0a0a0a@vsis169> User-Agent: Mutt/1.4.1i 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:37:37 -0000 On Fri, Jun 06, 2003 at 06:24:20PM -0500, Lewis Watson wrote: > 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... Are you referring to "make deinstall"? Don't use that to uninstall old packages. pkg_delete will remove a package for you. /usr/ports/sysutils/portupgrade will handle all of this for you including upgrading the required ports in the proper order. Portupgrade is also a faster typist. :-) -- Scott Lambert KC5MLE Unix SysAdmin lambert@lambertfam.org