From owner-freebsd-questions@FreeBSD.ORG Sat Sep 25 04:12:22 2004 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 A0C2216A4CE for ; Sat, 25 Sep 2004 04:12:22 +0000 (GMT) Received: from smtp805.mail.sc5.yahoo.com (smtp805.mail.sc5.yahoo.com [66.163.168.184]) by mx1.FreeBSD.org (Postfix) with SMTP id 5161643D2D for ; Sat, 25 Sep 2004 04:12:21 +0000 (GMT) (envelope-from donaldj1066@fastmail.fm) Received: from unknown (HELO pres7000.mylan.net) (donaldj@ameritech.net@68.249.2.234 with plain) by smtp805.mail.sc5.yahoo.com with SMTP; 25 Sep 2004 04:12:21 -0000 From: "Donald J. O'Neill" To: Chris Date: Fri, 24 Sep 2004 23:11:14 -0500 User-Agent: KMail/1.7 References: <5.1.0.14.2.20040924173912.06169ce0@209.152.117.178> <4154AEA4.5090208@makeworld.com> In-Reply-To: <4154AEA4.5090208@makeworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409242311.14456.donaldj1066@fastmail.fm> cc: "W. D." cc: freebsd-questions@freebsd.org cc: Curtis Vaughan Subject: Re: Port upgrading - my way 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: Sat, 25 Sep 2004 04:12:22 -0000 On Friday 24 September 2004 06:32 pm, Chris wrote: > W. D. wrote: > > At 14:44 9/23/2004, Chris, wrote: > >>>>You could join in the FreeBSD tradition, though, and do it > >>>> the Right Way(tm) ... > >>>> > >>>>http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.htm > >>>>l > >>>> > >>>>An excellent tutorial/article by Dru Lavigne.... > >>>> > >>>>Kevin Kinsey > >>> > >>>OK, after reading this tutorial, here is MY new WAY. > >>> > >>> /usr/local/bin/cvsup -g -L 2 /root/cvsup/ports-supfile > >>> portsdb -Uu > >>> portversion -l "<" [to see if any ports will be upgraded] > >>> portupgrade -arR [so dependencies will be installed, if > >>> necessary] [NB. If ever asked to run pkgdb -F, do it] > >>> > >>>Taking into consideration other issues or options pointed out > >>> on the web tutorial, will this be a good strategy from now on > >>> for performing good port upgrades? > >>> > >>>Curtis > >> > >>Yes - this is more or less how I do mine. > >>-- > >>Best regards, > >>Chris > > > > OK, how about adding a cron job by root like this? > > > > (Line will wrap. Everything between '===' on one line) > > ========================================================== > > 15 3 * * * /usr/local/bin/cvsup -h cvsup7.FreeBSD.org > > /usr/share/examples/cvsup/ports-supfile && portsdb -Uu && pkgdb > > -fu && cd /usr/ports && make index > > ========================================================== > > > > > > Then in the morning running: > > > > portversion -l "<" > > > > Would this automate things without causing problems? > > Any other safe ways to automate the process? > > > > > > I tend to do this in a periodic cron. Under /etc/periodic/weekly. > That also includes the output of portversion to the email. > > Then in the morning, I run the upgrade. <<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>> Hey, I can get all of at once. W.D. it's your cron job I'm looking, so I'll talk about it. It would work, probably most of the time. Your example has both portsdb -Uu and make index in it. Just use one, otherwise your building INDEX-5 twice. Running pkgdb -fu (by the way, make that -uf instead, I know it doesn't make any difference but I look at it and laugh too hard to think about anything else) won't do the trick in the case were you've deleted something and the now missing dependencies were not taken care of. You're going to have to do pkgdb -fF and manually remove the bad dependencies. The one place where I definitely remember this happening was the upgrade from kde32 to kde33. It's easy for someone to shoot down an idea, it's harder to come up with the idea in the first place. Don -- Donald J. O'Neill donaldj1066@fastmail.fm