Date: Fri, 29 May 2009 13:40:34 -0400 From: APseudoUtopia <apseudoutopia@gmail.com> To: barry@pdc4u.com Cc: Michael Goodell <michael@pdc4u.com>, questions@freebsd.org Subject: Re: difference between cvsup and portsnap Message-ID: <27ade5280905291040t227f5a12k2f47e7ee1c46ac69@mail.gmail.com> In-Reply-To: <1243616981.26778.6.camel@bmac-desktop> References: <1243616981.26778.6.camel@bmac-desktop>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 29, 2009 at 1:09 PM, Barry McCormick <barry@pdc4u.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27ade5280905291040t227f5a12k2f47e7ee1c46ac69>