correct way to cvsup ports for -stable
Richard Coleman
richardcoleman at mindspring.com
Fri Jan 23 07:02:06 PST 2004
If you are talking about updating the ports tree on a single machine via
cvsup, then it's easy. Just make a copy of
/usr/share/examples/cvsup/ports-supfile and update the name of the cvsup
mirror in this config file (say cvsup3.freebsd.org). Then the command
"cvsup -g -L 2 ports-supfile" will get you an updated tree. That's it.
If you use portupgrade to manage your ports (recommended), you will then
need to execute "portsdb -Uu" to rebuild your INDEX.db file.
To answer your question below, there is only one ports tree. So, even
if you are following -STABLE for the base code, you will still follow
the HEAD tag (-CURRENT) for the ports tree. So you generally cvsup
twice, once for /usr/src and once for /usr/ports. The ports tree is
generally pretty stable, so it works out just fine.
There are refinements to this procedure if you have many machines or
want to keep a copy of the whole CVS tree (for looking at CVS logs,
etc). Read the development(7) man page for an example.
Richard Coleman
richardcoleman at mindspring.com
Jozef Babjak wrote:
> Hi!
>
> A similar topic has been disscused here several days ago, but I still don't
> understand, how correctly update ports tree via cvsup. I have installed
> 4.9-release. I upgraded to -stable according to
> /usr/share/examples/cvsup/stable-supfile (I have changed only '*default
> host=...' line, all rest I kept untouched) and I done make world and kernel...
> I understand well how to upgrade system, but my questions about ports are:
>
> 1) Is it ok to upgrade ports, or do I have keep ports instaled from -release CD?
>
> 2) If I should upgrade ports, how exactly? Which file from examples I should use
> and how I need to modify it? There is nothing about ports upgrade in
> stable-supfile and ports-supfile deals about -current. Is it enough to use
> cvs-supfile from examples directory, change a cvsup server and comment out
> 'doc-all' and 'cvsroot-all', isn't it?
>
> Sorry for (maybe) stupid questions; I read comments in stable-supfile and
> handbook, but this is still not clear for me.
>
> Jozef
More information about the freebsd-stable
mailing list