Updating the ports collection

krad kraduk at googlemail.com
Wed Oct 7 14:35:53 UTC 2009


2009/10/7 Daniel Bye <freebsd-questions at slightlystrange.org>

> On Tue, Oct 06, 2009 at 09:07:07PM -0400, Chris Hill wrote:
> > On Wed, 7 Oct 2009, Olivier Nicole wrote:
> >
> > >Hi Chris,
> > >
> > >>The FreeBSD handbook section 4.5.1 describes several methods for
> > >>obtaining the ports collection including CVSup, Portsnap, and
> sysinstall.
> > >>
> > >>Section 4.5.1 also describes how to update the ports collection, but
> > >>only for the CVSup and Portsnap methods.
> > >>
> > >>Q1: How do I update the ports collection after using sysinstall to
> > >>obtain it?
> > >
> > >I cannot speak for postsnap, but for cvsup:
> >
> > csup works (almost?) the same as cvsup, and is in the base system
> > nowadays. I used to install cvsup, but now I only install fastest_cvsup;
> > it's just a utility to find the fastest server for you at the moment.
> >
> > >Some may correct me, but I use a file that contains:
> > >
> > >*default tag=.
> > >*default host=cvsup2.jp.FreeBSD.org
> > >*default base=/var/db
> > >*default prefix=/usr
> > >*default release=cvs
> > >*default delete use-rel-suffix
> > >*default compress
> > >ports-all
> >
> > I do the same, and run csup as:
> >
> > csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports
>
> You can set
>
> SUPHOST= `/usr/local/bin/fastest_cvsup -Q -c us`
> SUPFLAGS= -g
>
> in /etc/make.conf and save yourself some typing.
>
> Dan
> you
> --
> Daniel Bye
>                                                                     _
>                                              ASCII ribbon campaign ( )
>                                         - against HTML, vCards and  X
>                                - proprietary attachments in e-mail / \
>


the above way is good but this is the simplest as it requires no additional
programs or editing

csup -h cvsup.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile


I use the following as its a bit faster

csup -h cvsup.uk.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile

you can obviously insert your own country code


More information about the freebsd-questions mailing list