Date: Sun, 3 Aug 2008 05:57:00 -0300 From: Gonzalo Nemmi <gnemmi@gmail.com> To: Fraser Tweedale <frase@frase.id.au>, freebsd-questions@freebsd.org Subject: Re: gemeral questions (noobish) Message-ID: <200808030557.00555.gnemmi@gmail.com> In-Reply-To: <20080803084117.GA1862@bacardi.frase.id.au> References: <200808021550.48302.marshc187@gmail.com> <200808030531.35062.gnemmi@gmail.com> <20080803084117.GA1862@bacardi.frase.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 03 August 2008 05:41:19 you wrote: > On Sun, Aug 03, 2008 at 05:31:35AM -0300, Gonzalo Nemmi wrote: > > On Sunday 03 August 2008 03:18:23 Fraser Tweedale wrote: > > > On Sun, Aug 03, 2008 at 04:06:40PM +1000, Norberto Meijome wrote: > > > > On Sat, 2 Aug 2008 22:35:40 +0200 > > > > > > > > mcassar <marshc187@gmail.com> wrote: > > > > > so most of you _do_ use or prefer csup/cvsup more than portsnap, > > > > > right? > > > > > > > > Welcome! :) > > > > > > > > yes and no :P I like portsnap. faster. > > > > > > > > For my ports, i run this script ( ~/bin/update_ports.sh) > > > > > > > > #!/bin/sh > > > > sudo portsnap fetch && sudo portsnap update > > > > > > > > [snip] > > > > > > Did you know you can specifiy fetch and update at the same time? > > > > > > sudo portsnap fetch update > > > > > > ...and save calling portsnap twice :) > > > > > > frase > > > > And do it via cron? > > > > [gonzalo@inferna ~]% grep port /etc/crontab > > # keep the port index updated and e-mail me a list of ports to update > > 0 3 * * * root portsnap -I cron update > > && pkg_version -vIL=3D > > > > (Im pretty sure I took that from the "The Best of FreeBSD Basics" but I > > can't find the original article ... I know it's buried in here somewhere > > though: http://www.onlamp.com/pub/ct/15... so .. Credit goes to Dru > > Lavigne. :) ) > > > > That results on a daily e-mail from cron that looks like this: > > > > " Cron <root@inferna> portsnap -I cron update && pkg_version -vIL=3D > > From: Cron Daemon <root@inferna.inferna.com.ar> > > To: root@inferna.inferna.com.ar > > Date: 2008-08-01 03:07 > > > > ImageMagick-6.4.1.8 < needs updating (index has > > 6.4.2.5) en-openoffice.org-US-2.4.0_3 < needs updating (index > > has 2.4.1) ffmpeg-2007.10.04_4 < needs updating (index > > has 2008.07.27_1) > > ghostscript-gpl-8.61_4 < needs updating (index has 8.62_= 3) > > gnupg-2.0.9_1 < needs updating (index has > > 2.0.9_2) gnutls-2.4.1 < needs updating (index > > has 2.4.1_1) kaffeine-0.8.6_1 < needs updating > > (index has 0.8.7) kdegraphics-3.5.8_2 < needs updating > > (index has 3.5.8_3) libgphoto2-2.4.2 < needs > > updating (index has 2.4.2_1) libxine-1.1.12_1 < =20 > > needs updating (index has 1.1.14) linux-doom3-1.1.1286,0 <= =20 > > needs updating (index has 1.3.1.1304,1) > > pciids-20080312 < needs updating (index has > > 20080726) portmaster-2.5 < needs updating (index > > has 2.6) samba-libsmbclient-3.0.30 < needs updating (index > > has 3.0.31_1) speex-1.2.b2,1 < needs updating > > (index has 1.2.r1_1,1)" > > > > Then I get to decide whether or not to update a port, every port or do > > nothing and when to do it :D > > > > BTW: I use csup for the base system and portsnap and and friends for the > > ports collection :) > > > > Welcome and: have fun ! > > -- > > Blessings > > Gonzalo Nemmi > > Well, yes. `portsnap cron update` if running from cron. My point was that > you can do fetch and update in one operation :) Oh sure ! But check this out, this is interesting (at least for me): by using the -I= =20 flag I only update the INDEX file and not the whole port tree. =46rom man portsnap: "-I For the update command, update INDEX files, but not the rest of the ports tree." Now why would I want to do that? Well .. bandwith basically.. since Im running "portsnap cron update" via cr= on,=20 on a daily basis, I don't want to hammer the repos for no real reason ;) By using the -I flag, I can get a report with the info I need, and only the= n,=20 when there's a really good reason for it, I update the ports tree. > I too use csup for src and portsnap for ports. Portsnap is (at least in = my > experience) far faster and more bandwith efficient. 100% agreed. =2D-=20 Blessings Gonzalo Nemmi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808030557.00555.gnemmi>