From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 08:57:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED350106566C for ; Sun, 3 Aug 2008 08:57:05 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 9E3C88FC14 for ; Sun, 3 Aug 2008 08:57:05 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so751632ywe.13 for ; Sun, 03 Aug 2008 01:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=0qQ4f0V4Bf4waJbE0xWU07wnBW/NCWAZcn3jufX7jRU=; b=UsYcpj0IOYH4T19KkCcHgJY4Hu5Dia1AuqMBhiekfY6SGE1QGByWD3ECQ4Np0wYuwB sltd83JNFIJMbDeRgEArHecpuGpAs4QcuaNBNQOYGeGT6u2X9YCluqLTlYT4zr4Tj7+k 3hpomA1xd/PyK5OjjrNOGtmkujrCnfcYqERn0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=BFWbu/giIGCDLlMA6ijPypwOh3Od4TOAMPWhBFW8LABSCNSGesk3vM74CoK2LBG+US aYtA/MkLQfY4YLNtu1oYDyY/C3ozmy/S7kl3D7T05Ug4l73XYs1husmoiDDBd5swo1nn b+PNNDHJsMrODtLbpeC0/vxu88HjQIBW9L4YY= Received: by 10.151.44.15 with SMTP id w15mr6228699ybj.209.1217753825046; Sun, 03 Aug 2008 01:57:05 -0700 (PDT) Received: from 200-117-245-190.fibertel.com.ar ( [190.245.117.200]) by mx.google.com with ESMTPS id 5sm4987649ywl.4.2008.08.03.01.57.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Aug 2008 01:57:04 -0700 (PDT) From: Gonzalo Nemmi To: Fraser Tweedale , freebsd-questions@freebsd.org Date: Sun, 3 Aug 2008 05:57:00 -0300 User-Agent: KMail/1.9.7 References: <200808021550.48302.marshc187@gmail.com> <200808030531.35062.gnemmi@gmail.com> <20080803084117.GA1862@bacardi.frase.id.au> In-Reply-To: <20080803084117.GA1862@bacardi.frase.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200808030557.00555.gnemmi@gmail.com> Cc: Subject: Re: gemeral questions (noobish) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 08:57:06 -0000 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 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 portsnap -I cron update && pkg_version -vIL=3D > > From: Cron Daemon > > 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