From owner-freebsd-binup@FreeBSD.ORG Wed Feb 6 06:11:14 2008 Return-Path: Delivered-To: freebsd-binup@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD81416A41A for ; Wed, 6 Feb 2008 06:11:14 +0000 (UTC) (envelope-from navneet.upadhyay@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.freebsd.org (Postfix) with ESMTP id 77AFF13C4DD for ; Wed, 6 Feb 2008 06:11:14 +0000 (UTC) (envelope-from navneet.upadhyay@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so2404754wri.3 for ; Tue, 05 Feb 2008 22:11:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=NeX4+Kr4fgkIXQicD7i1NimJ+GyBkFH8N8d/eUBBwb0=; b=Lxh+RwYCkimNDJGsqJKSLpW+4zsHE2JEwft5QJH2TuNF7ZD1RbuVbxjy7y0VfOzlTR7WDOtimfVB/marEfuJVluHlJr/kwTtJvjta2SUzQJusIlX/JlRGn7KPFhBmWDw++Bsp/FuVQEqo24LvF+OJbxaW2MBeXFIwbBKnhgNZFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=JEsAR3Uv4I9xbPCBtYdFglr52n967alFS+afDW4Hwiy9kDOPnqXrqPMed564FcjEFKyRE6q5u90NeMLwe9dIdHZGGngGuQ0sW9k/X92uhDiqMxXiw3DXZXflilIr+3xOv36qPP2QHqKwnHU3s7EKkwoyhQDB5QotbbO3BIoxIPg= Received: by 10.151.9.1 with SMTP id m1mr3992825ybi.81.1202278273824; Tue, 05 Feb 2008 22:11:13 -0800 (PST) Received: by 10.150.185.7 with HTTP; Tue, 5 Feb 2008 22:11:13 -0800 (PST) Message-ID: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> Date: Wed, 6 Feb 2008 11:41:13 +0530 From: "navneet Upadhyay" To: freebsd-questions@freebsd.org, freebsd-binup@freebsd.org, freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Upgrading the Installed package X-BeenThere: freebsd-binup@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Design and development of the binary update system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 06:11:14 -0000 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. Thanks, Navneet From owner-freebsd-binup@FreeBSD.ORG Wed Feb 6 09:06:28 2008 Return-Path: Delivered-To: freebsd-binup@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FCA116A418 for ; Wed, 6 Feb 2008 09:06:28 +0000 (UTC) (envelope-from shantanoo@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.232]) by mx1.freebsd.org (Postfix) with ESMTP id E7FC613C4D5 for ; Wed, 6 Feb 2008 09:06:27 +0000 (UTC) (envelope-from shantanoo@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so2448228wxd.7 for ; Wed, 06 Feb 2008 01:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=B1zZogo4y59S0y7VTc7ykMNnOIcdu38d+rEUyu/xNBA=; b=DOQ9pMXgOoiICjtrW/jxqx0NT1uN0vq86fFwIL7e5IvBlEjr05W4dL1afYFTJrgsbw7+5M4cQo3UnBxs+4jGnKnWZxpPLE87xPYNVcJjMndfhBLrHW9dpUQJOJrlAga00lp7DDT6Qr6unkpM3zJdOqX629YFaHQXfCajX4eZaYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mH9aic0NwLolA5fJe/6pQMedi1OiMjq1hpzkKkaQz31wFK84HsefQO4OhKAeJyMCwk1qD1qjL5j8cfbgJ3JokJiPHHAjm5fKhSVikyb8K9ucUWLqSBQuUxAbv/sMBZppIKL2Y3pwLClLo3gKEVK8667ecvo1vWdrKNMpCeAfdzI= Received: by 10.70.89.1 with SMTP id m1mr6128923wxb.34.1202287219265; Wed, 06 Feb 2008 00:40:19 -0800 (PST) Received: by 10.70.71.13 with HTTP; Wed, 6 Feb 2008 00:40:19 -0800 (PST) Message-ID: <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> Date: Wed, 6 Feb 2008 14:10:19 +0530 From: "=?UTF-8?Q?=E0=A4=B6=E0=A4=82=E0=A4=A4=E0=A4=A8=E0=A5=81_(Shantanoo)?=" To: "navneet Upadhyay" In-Reply-To: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> Cc: freebsd-ports@freebsd.org, freebsd-questions@freebsd.org, freebsd-binup@freebsd.org Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-binup@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Design and development of the binary update system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 09:06:28 -0000 On Feb 6, 2008 11:41 AM, 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. > You may try portupgrade which can handle upgrades for you. more info on: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html regards, shantanoo From owner-freebsd-binup@FreeBSD.ORG Wed Feb 6 10:04:08 2008 Return-Path: Delivered-To: freebsd-binup@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EF0A16A418; Wed, 6 Feb 2008 10:04:08 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id E8F7E13C46E; Wed, 6 Feb 2008 10:03:59 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m16A357a002136; Wed, 6 Feb 2008 11:03:05 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m16A33ft002133; Wed, 6 Feb 2008 11:03:03 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 6 Feb 2008 11:03:03 +0100 (CET) From: Wojciech Puchar To: Jeremy Chadwick In-Reply-To: <20080206095133.GA94134@eos.sc1.parodius.com> Message-ID: <20080206110215.T2130@wojtek.tensor.gdynia.pl> References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> <20080206095133.GA94134@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: navneet Upadhyay , freebsd-ports@freebsd.org, freebsd-questions@freebsd.org, freebsd-binup@freebsd.org, "??????????????? \(Shantanoo\)" Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-binup@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Design and development of the binary update system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 10:04:08 -0000 while i usually did this think manually i would try portmaster next time i will need an upgrade. and - thanks to your explanation - i will avoid portupgrade. thank you. > > One such tool is portmaster (ports-mgmt/portmaster), maintained by Doug > Barton. It's actively maintained and written in sh. Its author is > quite active with freebsd-ports, and is quick to respond to both bug > reports and feature requests. > > -- > | 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 | > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > From owner-freebsd-binup@FreeBSD.ORG Wed Feb 6 10:09:50 2008 Return-Path: Delivered-To: freebsd-binup@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B63F316A421 for ; Wed, 6 Feb 2008 10:09:50 +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 9789513C4EC for ; Wed, 6 Feb 2008 10:09:50 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 87E571CC031; Wed, 6 Feb 2008 01:51:33 -0800 (PST) Date: Wed, 6 Feb 2008 01:51:33 -0800 From: Jeremy Chadwick To: "??????????????? (Shantanoo)" Message-ID: <20080206095133.GA94134@eos.sc1.parodius.com> References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: navneet Upadhyay , freebsd-binup@freebsd.org, freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-binup@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Design and development of the binary update system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 10:09:50 -0000 On Wed, Feb 06, 2008 at 02:10:19PM +0530, ??????????????? (Shantanoo) wrote: > On Feb 6, 2008 11:41 AM, 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. > > > > You may try portupgrade which can handle upgrades for you. > more info on: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html Sigh... why do people always recommend portupgrade to users without telling them of the caveats? I grow tired of this. So let's tell Navneet exactly what he's getting into, shall we? portupgrade: - Written in Ruby, which not many UNIX admins are familiar with (compared to, say, perl). If portupgrade has a bug, you will need to speak Ruby. - Ruby is not included in the base system; you have to install it from ports (read: just another thing to have to maintain...) ports base system: - C-based, and includes all of the pkg_* utilities. Nearly every FreeBSD user/administrator is familiar with these tools. - gcc comes with the base system. portupgrade: - Maintains its own database of ports installed, dependencies, and so on -- COMPLETELY separate from that of the ports base system. - Said database must be kept in sync with ports base system dependencies and other whatnots; and if they go out of sync (which happens regularly as can be confirmed by the never-ending supply of posts to freebsd-ports@ about portupgrade problems), you get to read incredibly cryptic error messages from Ruby. - Said database is Berkeley DB-based, which means you have to install Oracle/Sleepycat BDB from ports. (I believe you can pick DB1.x which comes with libc, but it's not recommended due to bugs). ports base system: - Uses flat text files in /var/db/pkg and /var/db/ports. The reason portupgrade uses its own database is supposedly due to the shortcomings/oversights of the existing ports system, and that's a legitimate point.. But my opinion is that these shortcomings/oversights should be addressed in the ports system and not via some third-party tool which adds unnecessary complexities and more headaches. Thus, I would suggest people go with the KISS (Keep It Simple, Stupid!) method, and consider using tools which are written in languages which come with the base system (e.g. C or sh) -- but even more importantly, use and rely solely on the ports base system. One such tool is portmaster (ports-mgmt/portmaster), maintained by Doug Barton. It's actively maintained and written in sh. Its author is quite active with freebsd-ports, and is quick to respond to both bug reports and feature requests. -- | 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 | From owner-freebsd-binup@FreeBSD.ORG Thu Feb 7 00:39:58 2008 Return-Path: Delivered-To: freebsd-binup@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D67816A417; Thu, 7 Feb 2008 00:39:58 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.freebsd.org (Postfix) with ESMTP id 2569C13C4E9; Thu, 7 Feb 2008 00:39:58 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id D7E3428431; Wed, 6 Feb 2008 18:08:31 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 72AA761C44; Wed, 6 Feb 2008 18:08:31 -0600 (CST) Date: Wed, 6 Feb 2008 18:08:31 -0600 From: "Matthew D. Fuller" To: Jeremy Chadwick Message-ID: <20080207000831.GO62553@over-yonder.net> References: <1563a4fd0802052211h623de132q68a1ad0c8a9b930c@mail.gmail.com> <230174700802060040x4f2a0815r1a4bdc7fccf62b5d@mail.gmail.com> <20080206095133.GA94134@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080206095133.GA94134@eos.sc1.parodius.com> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.17-fullermd.4 (2007-11-01) Cc: navneet Upadhyay , freebsd-ports@freebsd.org, freebsd-questions@freebsd.org, freebsd-binup@freebsd.org, "??????????????? \(Shantanoo\)" Subject: Re: Upgrading the Installed package X-BeenThere: freebsd-binup@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Design and development of the binary update system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 00:39:58 -0000 On Wed, Feb 06, 2008 at 01:51:33AM -0800 I heard the voice of Jeremy Chadwick, and lo! it spake thus: > > So let's tell Navneet exactly what he's getting into, shall we? OK, but let's do that by telling him what he's getting into, not vague gestures at overblown half-truths. > - Ruby is not included in the base system; you have to install it > from ports (read: just another thing to have to maintain...) My workstation has about 800 ports installed. A relatively lean server has 300. 1 more is so deep in the noise, you can't hardly measure it, much less see it. > ports base system: > - C-based, and includes all of the pkg_* utilities. Nearly every > FreeBSD user/administrator is familiar with these tools. Can't upgrade things. Show me how I use pkg_* to upgrade a package (let's say, gtk), and have all the metadata set right afterward. Requires either stupid amounts of manual work, or a lot of scripting (I upgrade perl. How do I rebuild p5-*?). > portupgrade: > - Maintains its own database of ports installed, dependencies, and > so on -- COMPLETELY separate from that of the ports base system. Which is just a cache of the existing files, and can be blown away at any time with no consequences other than a minute or two remaking them. > - Said database must be kept in sync with ports base system > dependencies and other whatnots; and if they go out of sync Which it rebuilds when it notices is out of date. The only time I've had problems out of it in years of using portupgrade is when I do something like update BDB (or less often, portupgrade or ruby-bdb). Whoopie. Consider the recent case involving sudo and portmaster; when you use a tool to update a low-level piece of itself, you have to take some care how you go about it. > - Said database is Berkeley DB-based, which means you have to install > Oracle/Sleepycat BDB from ports. (I believe you can pick DB1.x > which comes with libc, but it's not recommended due to bugs). So now we're up to 4 ports to install? If you can make that my biggest worry, I'll sent you a ginormous certified check first thing in the morning. There are a lot of things to hate in portupgrade, but let's don't pile handwaving anthills into mountains on top of that. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.