Monday, October 16, 2006

FreeBSD ports question: "Need sources in /usr/src?"

Recently I had to install a FreeBSD box. I am actually a Linux fan, but don't mind the difference a lot since it is basically *nix and more importantly open source.

Anyway. Obviously one can't do much without some other packages (well 'ports' in this case). So I started installing them from ports until I hit a brick wall: I would need the FreeBSD source in /usr/src.

Now! How can I do that? Actually, the detailed information is in the handbook (which is a great asset for the FreeBSD community and the users of course). However, that was too detailed for me. After all, I only needed to do a simple thing. I tried to check it out using CVS, but I forgot to include the CVS tag. Too many details for a simple thing. Right? Well, sometimes one need to know that kind of detail, but in this case, probably not.

In the end I choose the easy way and asked a FreeBSD expert. Here is the quick answer and apperantly one of the prefered ways of getting the sources:

  1. Install CVSup by (as root) running pkg_add -r cvsup-without-gui
  2. Edit /usr/share/examples/cvsup/standard-supfile and use a cvsup server mirror near you (pick one from here, in 'CVSup Sites' section)
  3. And get all sources for your release by running (as root again!) cvsup -g -L 2 /usr/share/examples/cvsup/standard-supfile
It takes quite a while before you get all of them.

Looks still a bit too complicated, but this is the way I found, the most compact, up to now. Let me know if there is an easier way.

0 comments:

Post a Comment