I assumed you're using OpenBSD. Now that I've written all this, I realize you didn't specify, so you're probably using FreeBSD. If that's the case, ignore the remainder of this message and look up CVSup.
Here's my attempt at writing a procedure for updating ports in OpenBSD:
I'm really new at this, and haven't tried what I'm about to tell you, but I've just found the relevant sections in the manuals, and here's basically what they say:
To use ports (and you DO want to use ports), do this to set up initially:
If the environment variable isn’t set, set it to the usual server. Always use the same server. Use ping to find out which ones are fastest for you. Note that you have to log in as root, or use "su" to become root for this to work.
# setenv CVSROOT anoncvs@[put a fast cvs server URI here, without the square brackets]:/cvs
# cd /usr
# cvs -q get -rOPENBSD_3_4 -P ports
---------------------------------------------------
To update ports, do this:
(This follows the patch branch, not current.)
# cd /usr
# cvs -q up -rOPENBSD_3_4 ports
Now, here's the part I'm not sure about. I think this may rebuild all the binaries of all the programs installed from ports on your system. (Hopefully, someone will correct me if I'm wrong, and we'll both learn something.)
Rebuilding the binaries:
# cd /usr/src
# rm –r /usr/obj/*
# make obj && make build
(This will take a while.)
|