Linux – FreeBSD crash course for a Debian administrator

bsddebianfreebsdlinux

Can someone please post a quick FreeBSD administration crash course, targeted at a Debian administrator? The environment is a production web server.

Some things I'd like to know:

  1. package management (ports or pkg_*) ? pros/cons vs. aptitude ?
  2. upgrading between releases ? e.g. aptitude safe-upgrade / full-upgrade
  3. how long is a release supported ? is there any reason not to pick the latest release ?
  4. any gotchas ?

I'm basically concerned I'm going to really miss aptitude. The ports system is cool but the majority of things I install really don't warrant the time it takes to compile from scratch. I understand you can build a package from a port to save time installing across multiple machines, but I'm just talking about one server at the moment. Is pkg* used much? It seems like everyone uses ports. Would be interested to hear how things are in practice, preferably from someone who's done both Debian and FreeBSD admin.

Background:

I've used FreeBSD and OpenBSD as my primary desktop OS at different times over the years but have spent the past 5 years running Debian on production servers.

The opportunity has arisen to move back to BSD and I'd like to give it a shot.

Best Answer

The FreeBSD Handbook is your friend for all basic questions.

The ports tree and the pkg_* system are one in the same. There are also additional pkg_8 management tools in the ports tree if the built-in ones aren't enough.

Upgrading will depend heavily on your environment, but can be as easy as cd /usr/src; make buildworld; make installworld and horribly complex in the opposite environment.

The FreeBSD Security Team determines how long releases are supported (bug/security fixes). Scroll to the bottom of their page for the current schedule.

Same gotchas as most other *nix OSes; if you're familiar with Debian, you should be familiar with many already. If you have additional or more specific questions feel free to ask.