Friday, March 28, 2008

FreeBSD: Updating ports with csup

I learned about csup during the development of HeX, thanks to chfl4gs_ for that. Now we no longer need to use cvsup to update the source or software packages as csup is the replacement of cvsup which is written in C. In fact, I feel that it is much faster after testing it.

To update the FreeBSD ports, I just need to do the following

shell>cp /usr/share/examples/cvsup/ports-supfile /usr

Edit the ports-supfile by adding the fastest mirror for you(remember nearest is not always the fastest), I choose Taiwan mirror here -

*default host=cvsup.tw.FreeBSD.org

Now run the csup to update the ports

shell>csup -L 2 /usr/ports-supfile

Once the update is done, you will read Finished successfully at the end of message.

Peace ;]

5 comments:

Richard Bejtlich said...

geek00l, have you considered running your own tinderbox for building and managing your own packages?

C.S.Lee(geek00L) said...

Hi Rich,

Actually we have been having this idea in mind for long time, it's better to run tinderbox to compile once, install everywhere but so far no good luck in sponsor hunting.

Joe said...

Take a look at portsnap.

Anonymous said...

indeed. Portsnap is far easier and faster. Add the command "portstap cron" to your crontab and you will not only save bandwidth but cpu time.

Anonymous said...

opps, "portsnap cron" is the correct command.