From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 14:12:31 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 7CC8416A420 for ; Wed, 6 Feb 2008 14:12:31 +0000 (UTC) (envelope-from jcw@highperformance.net) Received: from mx1.highperformance.net (dsl081-163-122.sea1.dsl.speakeasy.net [64.81.163.122]) by mx1.freebsd.org (Postfix) with ESMTP id 3331A13C504 for ; Wed, 6 Feb 2008 14:12:30 +0000 (UTC) (envelope-from jcw@highperformance.net) Received: from w16.stradamotorsports.com (w16.stradamotorsports.com [192.168.1.16]) by mx1.highperformance.net (8.13.8/8.13.8) with ESMTP id m16ECOMT082968; Wed, 6 Feb 2008 06:12:25 -0800 (PST) (envelope-from jcw@highperformance.net) Message-ID: <47A9C052.60609@highperformance.net> Date: Wed, 06 Feb 2008 06:12:34 -0800 From: "Jason C. Wells" User-Agent: Thunderbird 2.0.0.4pre (X11/20080205) MIME-Version: 1.0 To: navneet Upadhyay References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> In-Reply-To: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=2.5 tests=ALL_TRUSTED,BAYES_00 autolearn=failed version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on s4.stradamotorsports.com Cc: freebsd-questions@freebsd.org 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 14:12:31 -0000 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. #!/bin/sh pkg_delete pkg-1.1 pkg_add pkg-1.2 There! A new port management binary upgrade utility. 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. Regards, Jason