Lab / FreeBSD / Linux / Unix
Why FreeBSD Instead of Linux?
By Loopback Updated 6 min read

FreeBSD suits servers that use ZFS for storage or jails to separate services. Its Handbook explains how the base system is laid out and configured. Choose a Linux distribution such as Debian when your applications, hardware or deployment tools already depend on Linux.
A small storage server is a good FreeBSD candidate. You can use ZFS snapshots for data in jails and keep the backup on separate storage. A web server that already runs a vendor's Linux-only agent is a better candidate for Debian if the vendor supports that release.
Check the exact workload before installing either system. Include the storage controller and network adapter, the software you need, and the steps you would take to recover the service after an update.
FreeBSD vs Debian for a small server
| Decision | FreeBSD | Debian stable |
|---|---|---|
| Updates | Follow the update instructions for the installed base release and update third-party packages as well. | Use APT with the configured Debian stable and security repositories. Check any vendor repositories separately. |
| Software | Check the package for your release and architecture, and verify that the vendor supports FreeBSD if you rely on its support. | Check the Debian archive and the vendor's supported Linux distributions. Confirm the versions your software needs. |
| Isolation | Jails share the FreeBSD kernel. Plan storage and networking for each jail. | Use Linux containers for software that shares the Linux kernel, or a virtual machine for a separate guest kernel. |
Debian documents its security update process. For FreeBSD, check the support dates for your FreeBSD release and the Handbook's jail requirements. If you already have a deployment script, try a full install and restore on a disposable test instance before moving traffic or data.
FreeBSD’s kernel and userland are developed together
A Linux distribution combines the Linux kernel with a userland, package tooling, service management and its own policies. Debian, Fedora and Alpine make different decisions about those components. Each can be internally coherent while still feeling different from the next distribution.
FreeBSD develops its kernel and base userland together as an operating system. It incorporates software from outside projects into that coordinated base. Separately installed applications use the package and Ports system. The FreeBSD guide for Linux users explains that distinction and the usual /usr/local layout.
For maintenance, FreeBSD separates the base system’s release process from the package records and configuration of added applications.
What comes with the FreeBSD base system
The supplied GENERIC kernel supports many hardware platforms, and loadable modules can add functionality without a rebuild. A custom kernel adds a separate configuration and build process to maintain, so it needs a concrete hardware or feature requirement. The kernel configuration chapter explains the choices. The GENERIC versus custom kernel section (forthcoming) covers their maintenance cost.
A standard base installation supplies the shell, core utilities, system libraries, startup framework, manual pages and administration tools such as ifconfig, sockstat and sysctl. It includes OpenSSH, so an SSH server does not require a separate package. See the base OpenSSH and portable OpenSSH comparison (forthcoming) before deciding to replace it.
FreeBSD also supplies jails, which isolate environments while sharing the host kernel, and integrated OpenZFS support and management tools. UFS remains a filesystem choice. These facilities still require planning and configuration: a jail is not a virtual machine with its own kernel, and a ZFS snapshot on the same pool is not an independent backup.
FreeBSD includes PF in its base system. The firewall chapter documents its configuration. This site’s basic host setup uses PF (forthcoming).
Included services still need configuration and enablement. Applications such as Vim, a web server and the OpenNTPD package used later in this series are separate installations.

Package management: pkg, Ports and Linux tooling
Package tools make the differences between Linux distributions easy to see:
| Distribution or family | Package tooling |
|---|---|
| Debian and Ubuntu | APT, with dpkg underneath |
| Fedora and current RHEL-family systems | DNF. YUM appears in older systems and compatibility commands |
| openSUSE and SUSE Linux Enterprise | Zypper |
| Arch Linux | Pacman |
| Alpine Linux | APK |
| Gentoo | Portage, commonly through emerge |
The Debian package tools documentation, Fedora DNF guide, SUSE distribution/tool mapping and Gentoo emerge manual describe these tools.
Repository conventions, package names, dependency policies and configuration-file handling also differ. A script can account for those differences, but someone still has to understand and maintain it.
On FreeBSD, pkg manages binary application packages, while the Ports Collection provides a framework for building applications from source. Binary packages avoid local compilation. Ports supports custom build options, with additional build and update work for the administrator.
If you want to inspect the base system or build an application locally, get the source and Ports trees with Git (forthcoming). They are separate repositories with different branch choices.
Configuration: /etc, /usr/local/etc and rc.conf
FreeBSD normally places base-system configuration in /etc and installed application configuration in /usr/local/etc. Service enablement and many startup settings belong in /etc/rc.conf. Defaults live in /etc/defaults/rc.conf. Local overrides belong in the administrator's configuration. The Handbook documents those conventions.
This does not put every setting in one file. SSH, PF and individual applications still have their own configuration. The benefit is knowing where to look and how those files relate to startup.
On a Linux host, the relevant configuration depends on which component manages the setting. Networking is an easy example. A machine might use NetworkManager or systemd-networkd directly, or use Netplan to generate configuration for either backend. Netplan documents that relationship. Netplan generates configuration for the selected backend, which then manages networking.
Service management can change as well. Many distributions use systemd. Alpine uses OpenRC. A service procedure written for one does not transfer unchanged to the other.
For a runbook that covers several distributions, those differences need explicit instructions. FreeBSD’s documented startup conventions give runbooks a common structure, while individual services still need their own configuration instructions.
FreeBSD releases and security updates
FreeBSD has a Release Engineering Team, documented release branches and a Security Team responsible for base-system security. The project publishes security advisories and separate errata notices for non-security corrections. Its security page identifies supported releases and their maintenance periods.
Third-party packages remain a separate responsibility. The FreeBSD security page points to VuXML for Ports Collection issues, and the package tools provide vulnerability auditing. Updating the base alone does not make an installed application current. Our pkg audit guide shows how to check installed packages and interpret the findings.
Linux distributions also publish release schedules and security updates. The operational difference is which project’s support policy and update instructions apply. A fleet standardized on one Linux distribution can also follow a common maintenance process.
The security benefit still depends on timely patches, service configuration and the workload. Project organization alone cannot establish that one system has fewer vulnerabilities.
Consistent conventions still require release-specific instructions
FreeBSD changes too. A familiar directory layout does not mean an old upgrade procedure is still correct. Upgrade planning still requires the release notes, support status and instructions for the installed version.
Stable conventions help administrators locate settings and reuse procedures. Release-specific changes still need review before those procedures are applied to another machine.