From owner-freebsd-questions@FreeBSD.ORG Mon Mar 14 01:41:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 820FF16A4CE for ; Mon, 14 Mar 2005 01:41:23 +0000 (GMT) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 661FB43D54 for ; Mon, 14 Mar 2005 01:41:22 +0000 (GMT) (envelope-from jason@ec.rr.com) Received: from BARTON (cpe-065-184-201-054.ec.rr.com [65.184.201.54]) j2E1fJLv022150 for ; Sun, 13 Mar 2005 20:41:19 -0500 (EST) Date: Mon, 14 Mar 2005 01:50:16 +0000 From: Jason Henson To: freebsd-questions@freebsd.org References: <20050313200543.B290F4BE6D@ws1-1.us4.outblaze.com> <200503131220.02607.ringworm01@gmail.com> <4234A4C5.2090109@cis.strath.ac.uk><4234A933.10301@cis.strath.ac.uk> In-Reply-To: <4234A933.10301@cis.strath.ac.uk> (from chodgins@cis.strath.ac.uk on Sun Mar 13 15:57:23 2005) X-Mailer: Balsa 2.2.6 Message-Id: <1110765016l.17082l.1l@BARTON> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: If I have portmanager, do I need portupgrade? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 01:41:24 -0000 On 03/13/05 15:57:23, Chris Hodgins wrote: > Michael C. Shultz wrote: >> On Sunday 13 March 2005 12:38 pm, you wrote: >>=20 >>> Michael C. Shultz wrote: >>>=20 >>>> On Sunday 13 March 2005 12:05 pm, Fafa Diliha Romanova wrote: >>>>=20 >>>>> If I just do: >>>>>=20 >>>>> cvsup -g -L 2 /etc/cvsupfile && portmanager -u >>>>>=20 >>>>> Do I need portupgrade at all then? >>>>>=20 >>>>> Thanks. >>>>=20 >>>> Not for upgrading. portsclean (a part of portsupgrade package) is >>>> a nice feature of portupgrade, so is pkg_which and a few others so >>>> I keep portupgrade around just the same. >>>>=20 >>>> -Mike >>>=20 >>> How long does it take to run portmanager. Is it a similar amount =20 >>> of >>> time as portupgrade for each run? >>>=20 >>> Chris >>=20 >>=20 >> That is a tough question here is how it tends to work for me: >>=20 >> First I run it everyday since I'm developing it I have to know if =20 >> there >> is anything changed in ports that is going to cause portmanager to >> crash. Most days it takes less than an hour, but sometimes when >> just one lower level port like gettext for example is updated it may >> take 24 hours to finish. I'm using a 1ghz machine with both gnome >> and kde (all together about 300 installed ports) as an example. >>=20 >> Here is exactly how portmanager works: >>=20 >> First dependent ports that are out of date are upgraded, then =20 >> everything >> that depends on them are upgraded. portupgrade does not work this =20 >> same way so the time comparison is very tough to predict. >>=20 >> -Mike >> >=20 > Ah I see. So portmanager is sort of doing the equivelant to: > portupgrade -fr myOutOfDatePort ?? >=20 > Does this not mean it will always be slower than portupgrade? If it =20 > a low-level port it is going to take ages but if it is high-level it =20 > will start to get closer to the time it takes for portupgrade to run. =20 > Never faster? Or am I missing something. >=20 > Is there a reason it does it this way over portupgrades method? >=20 > Chris > _______________________________________________ I think there is no big difference between just running portupgrade vs =20 portmanager. I would say portmanager is better and faster because you =20 don't need to baby sit, it is really automagical, and there is no =20 messing with an index. To upgrade one high level port will take that =20 same time on both, if you don't have to pkgdb -F or fiddle with the =20 index. If it is a low level port portmanager will likely take longer, =20 but get it done right the first time. If portupgrade finishes first it =20 likely missed some cross dependancies and you will have to do it by =20 hand after you have done some trouble shooting. The best part about =20 portmanager for is NO RUBY!