Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2004 18:32:52 -0500
From:      Chris <racerx@makeworld.com>
To:        "W. D." <WD@US-Webmasters.com>
Cc:        "Donald J. O'Neill" <donaldj1066@fastmail.fm>
Subject:   Re: Port upgrading - my way
Message-ID:  <4154AEA4.5090208@makeworld.com>
In-Reply-To: <5.1.0.14.2.20040924173912.06169ce0@209.152.117.178>
References:  <C25FD1D7-0D97-11D9-9B5C-000393934006@npc-usa.com> <451E9011-0BF5-11D9-B049-000393934006@npc-usa.com> <200409211422.10752.donaldj1066@fastmail.fm> <C63A4B10-0C12-11D9-B049-000393934006@npc-usa.com> <4150B50B.7040208@daleco.biz> <C25FD1D7-0D97-11D9-9B5C-000393934006@npc-usa.com> <5.1.0.14.2.20040924173912.06169ce0@209.152.117.178>

next in thread | previous in thread | raw e-mail | index | archive | help
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.html
>>>>
>>>>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?
> 
> 
> Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/
> $8.77 Domain Names -> http://domains.us-webmasters.com/
> 
> 
> 
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.

-- 
Best regards,
Chris

All things come to him whose name is on a mailing list.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4154AEA4.5090208>