From owner-freebsd-questions@FreeBSD.ORG Fri May 29 18:02:04 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E901F1065688 for ; Fri, 29 May 2009 18:02:04 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: from mail-ew0-f164.google.com (mail-ew0-f164.google.com [209.85.219.164]) by mx1.freebsd.org (Postfix) with ESMTP id 7C6F68FC12 for ; Fri, 29 May 2009 18:02:04 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: by ewy8 with SMTP id 8so2967976ewy.43 for ; Fri, 29 May 2009 11:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ab0BR0QSlkJP+BCZ6DxKg1aWYExCj2ZEtOrn6eR48dA=; b=wI1oySLD5HnWhzBRcU3yzOwKmm9UlJZ0HijgWUS3JO/id2lIQa+hR8l/65k6u2/Uij kHAFacnqXkE68t27cxnke4V/vLkCuAORc+5tJbvABv7negSg7BQavJE6F/nyHOEDSlOc r5brbCMxgfsY+MoahP6D3Ay35Bc4QOcmiobL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=WmI3lh0VxP8+skIqY8XUqcVwDhk/c2gBOQD9NZs4IPxNaNBGYLgCapTSk0ZjYZTAwT OVPtwdgO8/XoyY3yYJxpcjOoshTKQGuMZ0mWNM/y+SSA5EdSoWjhZFTZwG0bOH1pjrDQ vxLrDda7OKP8TAm5tq0JiCoZf88Xx8g4aMeqA= MIME-Version: 1.0 Received: by 10.216.11.212 with SMTP id 62mr1013462wex.186.1243618854586; Fri, 29 May 2009 10:40:54 -0700 (PDT) In-Reply-To: <1243616981.26778.6.camel@bmac-desktop> References: <1243616981.26778.6.camel@bmac-desktop> From: APseudoUtopia Date: Fri, 29 May 2009 13:40:34 -0400 Message-ID: <27ade5280905291040t227f5a12k2f47e7ee1c46ac69@mail.gmail.com> To: barry@pdc4u.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Michael Goodell , questions@freebsd.org Subject: Re: difference between cvsup and portsnap 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: Fri, 29 May 2009 18:02:05 -0000 On Fri, May 29, 2009 at 1:09 PM, Barry McCormick wrote: > Here at my work we use FreeBSD in production. =C2=A0We have the following > debate and wish to know better the differences between cvsup(csup) and > portsnap. =C2=A0One of my co-workers think that portsnap should NOT be us= ed > and only gets the latest and greatest port collection, no matter what > version =C2=A0of FreeBSD is on the server. =C2=A0 For example, if you are= still > running a 5.4 stable box in production and use any of the portsnap, > portupgrade, etc utilities, you would pull the current version ports and > NOT from teh directory of the 5.4 ports. I.E, risk breaking the > production box. =C2=A0So you should not use portsnap ever except for dev > boxes. > > I have always used portsnap to set up a new machine. =C2=A0I have never h= ad > it pull a wrong port that I knew of. =C2=A0I think it has to pay attentio= n to > the version of the ports it is pulling. > > > which is right? =C2=A0This is a major issue with our production servers. > Thanks > There is no "5.4" branch of the ports collection. If you're running FreeBSD 2, you have the same exact ports collection as FreeBSD 8 does (as long as you get an updated copy of the ports collection, of course). CSup gets the instant CVS revision of the ports collection. Portsnap is a bit delayed because it fetches a tarball of the collection (it doesn't check out from CVS). However, portsnap uses a secure key to verify the integrity of the snapshot retrieved. I personally use portsnap. It's also easier to script. I have this in my crontab; 0 0 * * * root /usr/sbin/portsnap -I cron update && /usr/sbin/pkg_version -I -L =3D -v It updates the index files, not the actual ports collection itself. This way, it wont interrupt any currently running compiles or upgrades.