OpenWrt Explained: What It Is and How It Differs from Desktop Linux
OpenWrt is a Linux system for routers and other embedded devices. See how its storage, init, config and tools differ from a desktop or server distro.
OpenWrt is a Linux operating system for embedded devices. According to its home page, it offers a writable filesystem with package management, so you can customize the device with add-on software. This article explains how that differs from the Debian, Fedora or Arch installs you may know.
What OpenWrt is
The project home page describes OpenWrt as a Linux operating system for embedded devices, with a fully writable filesystem and package management. It lists more than 3,000 add-on packages. At the time of writing, the page names 25.12.6 (18 October 2026) as the current stable release and 24.10.8 (26 July 2026) as old-stable.
Different building blocks
The architecture documentation lists the components OpenWrt uses and compares them with desktop equivalents:
| Role | OpenWrt | Typical desktop/server distro |
|---|---|---|
| Init system | procd | systemd |
| C library | musl (uClibc is another option) | glibc |
| Network configuration | netifd | NetworkManager |
| IPC | ubus | D-Bus |
The same page lists BusyBox tools for init, logging, watchdog and cron roles. For more on the BusyBox approach, see BusyBox: One Binary for a Whole Embedded Userland.
A read-only base with a writable overlay
The flash layout documentation explains the storage design. The base system sits in a SquashFS image mounted at /rom, which cannot be changed. The remaining flash holds a writable partition mounted at /overlay, using JFFS2 on NOR devices and UBIFS on NAND devices.
OverlayFS stacks /overlay on top of /rom, and / shows the merged result. Edited configs and installed packages land in the overlay. Deleting a file that exists only in /rom creates a whiteout entry that hides it.
Because the configuration lives in the writable overlay, the flash layout page points to sysupgrade with the JFFS2 partition cleared, or failsafe mode, to reset a whole installation.
One place for configuration: UCI
OpenWrt keeps service settings in files under /etc/config/, one per area such as network, firewall, wireless and dhcp. The uci tool reads and writes them.
uci show network
uci set uhttpd.main.listen_http='8080'
uci commit uhttpd
/etc/init.d/uhttpd restartuci set stages a change, uci commit writes it, and the service must be restarted or reloaded to pick it up. The UCI documentation warns that uci rewrites a whole file and drops comments, so use a text editor if you want to keep them.
Installing software
The opkg documentation describes opkg as a lightweight package manager:
opkg update
opkg install <package>
opkg list-installedThe opkg page does not say which OpenWrt releases it covers, so check the documentation for your version before relying on these commands. The same page warns that snapshot builds may fail to install packages built for a newer kernel.
Compare this with the model in apt, dnf and pacman Commands Compared: on OpenWrt, installed packages are stored in the writable overlay.
When to choose it
If you want to build your own minimal system image rather than adopt a router-focused one, see Buildroot: Build a Minimal Linux Image and Boot It in QEMU.
Always confirm that your exact device model is supported before flashing, and keep a way to recover it.
Sources
This article was drafted with AI assistance, fact-checked against the sources listed above and reviewed by a human editor before publication. Spotted an error? See our corrections policy.