cvs checkout ./. csup

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Nov 15 11:01:17 UTC 2011


On 15/11/2011 09:48, Matthias Apitz wrote:
> Since many years I'm fetching or updating /usr/ports with
> 
> # cd /usr
> # setenv CVSROOT :pserver:anoncvs at anoncvs.fr.FreeBSD.org:/home/ncvs
> # cvs checkout ports
> 
> and later do the updating just with:
> 
> # cd /usr/ports
> # cvs update
> # portupgrade -ai
> 
> The FreeBSD handbook describes (or recommends?) using 'csup' for
> updating ports tree... What is the advantage (or reason, if any)?

Efficiency, basically.  csup should require less bandwidth and put less
load on servers than using cvs directly.  It works like rsync, only
transferring the parts of the files that changed but exploiting the cvs
revision history to produce more specific and minimal deltas than you
can get just by using the standard rsync algorithm.

However csup(1) doesn't give you any of the VCS features you'ld get by
doing a cvs checkout -- so no simple way to diff a local copy against
the repo, etc. etc. 'cvs checkout' of all or parts of the ports is still
frequently preferable for developing rather than just using the ports.

There are also many more cvsup servers worldwide than there are anon-cvs
servers.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20111115/e4b05207/signature.pgp


More information about the freebsd-ports mailing list