From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 15:10:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66B7316A46E for ; Wed, 6 Feb 2008 15:10:58 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-2.mail.uk.tiscali.com (mk-outboundfilter-2.mail.uk.tiscali.com [212.74.114.38]) by mx1.freebsd.org (Postfix) with ESMTP id DF9F513C442 for ; Wed, 6 Feb 2008 15:10:57 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 1570266/mk-outboundfilter-2.mail.uk.tiscali.com/PIPEX/$MX-ACCEPTED/pipex-infrastructure/62.241.162.32 X-SBRS: None X-RemoteIP: 62.241.162.32 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAJxcqUc+8aIg/2dsb2JhbACuAA X-IP-Direction: IN Received: from ranger.systems.pipex.net ([62.241.162.32]) by smtp.pipex.tiscali.co.uk with ESMTP; 06 Feb 2008 15:10:56 +0000 Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by ranger.systems.pipex.net (Postfix) with ESMTP id 5016BE00008E; Wed, 6 Feb 2008 15:10:55 +0000 (GMT) Message-ID: <47A9CDFB.60103@dial.pipex.com> Date: Wed, 06 Feb 2008 15:10:51 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <47A9C052.60609@highperformance.net> In-Reply-To: <47A9C052.60609@highperformance.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 15:10:58 -0000 Jason C. Wells wrote: > navneet Upadhyay wrote: > >> Hi, >> I have two binary packages of an application of version 1.1 and >> 1.2. >> *The 1.1 is already installed, how can i upgrade it to 1.2* ? >> >> Do i have to uninstall 1.1 and then install 1.2 ? I would prefer a >> way by >> which i can upgrade an wxisting package without uninstalling. > > > Uninstall reinstall takes all of five seconds. It's quite easy. Any > of the ports management software has to do some variety of this > anyway. The only difference is they do it with one command. Actually, there is one other key difference. portupgrade[1] will make a *backup* of the package it is about to uninstall, and will recover that backup if the subsequent install of the new package fails. You can do that by hand with the pkg_ tools but I know I prefer it to just happen. You could add that to your script, but why re-invent the wheel? portupgrade[1] also keeps copies of any libraries it uninstalls during an upgrade, which ought not to be necessary. But if something was silently relying on one, you won't break it. > The usefulness of the port management apps (portmaster,portupgrade) is > when you want to upgrade multiple ports and large amounts of > dependencies all at once. They are more trouble than they are worth > for a single package. That is, unless you are already using them. The other argument would be that there's no better time to get familiar with a tool than when you can use it to do something easy. --Alex [1] portmaster may do this too. I don't know as regrettably I haven't found time to try it yet. The new version is something I would like to try, and while I can't recommend it from personal experience, I would suggest trying it nonetheless.