From owner-freebsd-ports@FreeBSD.ORG Wed Feb 6 11:41:13 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C7D716A419 for ; Wed, 6 Feb 2008 11:41:13 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4C50D13C4D5 for ; Wed, 6 Feb 2008 11:41:13 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 2207D1CC033; Wed, 6 Feb 2008 03:41:13 -0800 (PST) Date: Wed, 6 Feb 2008 03:41:13 -0800 From: Jeremy Chadwick To: navneet Upadhyay Message-ID: <20080206114113.GA95591@eos.sc1.parodius.com> References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> <20080206095133.GA94134@eos.sc1.parodius.com> <20080206110215.T2130@wojtek.tensor.gdynia.pl> <1563a4fd0802060239t16e539adn784001d75f9d1d02@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1563a4fd0802060239t16e539adn784001d75f9d1d02@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Wojciech Puchar , freebsd-ports@freebsd.org Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 11:41:13 -0000 On Wed, Feb 06, 2008 at 04:09:47PM +0530, navneet Upadhyay wrote: > Since i am not using the ports , i have complied my product and have created > package using pkg_create on Machine B(build)and added it using pkg_add on > machine A . > so after these steps i have my 1.0 installed on Machine A. > > Now i have made some changes in my product and created a package on Machine > B using pkg_create, and it is my 1.1 version. > > I want to install this(1.1) version on machine A(which is having 1.0 already > installed) . > > one way is to remove 1.0 and install 1.1 on machine A, but i cannot afford > to do so. IS there any way to upgrade it to 1.1 without uninstalling? > pkg_update command is not present. > > I hope i am clear with what i want. Yes, what you want is clear; I understand you. And the straightforward answer to your question is no, it's not possible. The way you upgrade a port/package on a FreeBSD machine is that you pkg_delete (deinstall) the old one before pkg_add'ing (installing) the new one. All package management systems on every platform I've used (Solaris, Linux, and FreeBSD) behave this way. It would help if you could explain why you cannot afford to pkg_delete your 1.0 package before installing 1.1. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |