There is a whole class of problem that virtual machines are too heavy for and that Flatpak and Snap solve badly: you want one specific package from another distribution, or a clean throwaway environment, or a rolling-release toolchain on a stable host. Distrobox fixes exactly that. It spins up containers of Fedora, Ubuntu, Arch or almost anything else and wires them so tightly to your host that the programs inside look and behave like native apps.
It is not a virtual machine, and it is not isolation for security — it is integration for convenience. This tutorial installs Distrobox, explains the Podman-versus-Docker choice, walks through create, enter and export, and finishes with a practical example you can extend to your own workflow.
What Distrobox actually is
Distrobox is a thin wrapper around podman, docker or lilipod. It creates a container from a distribution image, then configures it to share your host’s home directory, external storage, USB devices, audio and graphical apps over X11 or Wayland. You drop into a shell inside the container, use its package manager, and never reboot or dual-boot.
The key difference from a plain container is the integration layer. Your $HOME is the same inside and outside, so files are in place without copying or mounts you have to manage. GPU access, fonts, themes and the clipboard all work. The result is not a walled garden — it is a second distribution living inside your terminal as if it were installed normally.
The flip side matters too: because the container shares your home directory and devices, Distrobox is not a sandbox. Treat it as a tool for compatibility and convenience, not as a security boundary.
Install Distrobox and choose a container manager
Distrobox needs one container engine underneath. Podman is the default recommendation — it is rootless by default, which is the safer posture for a tool that touches your home directory.
- Install a container manager first.
sudo dnf install podman sudo pacman -S podman - Install Distrobox from your repositories, or with the official script.
sudo dnf install distrobox # or, any distro: curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh - Verify that both pieces are in place.
distrobox --version podman info
| Engine | Rootless by default | Notes |
|---|---|---|
| Podman | Yes | Recommended; daemonless, drops into user session |
| Docker | No | Use if already installed; needs the daemon running |
| Lilipod | Yes | Lightweight static alternative, no daemon |
Create, enter and manage containers
A single command creates a container from a distribution image. Give it a name you will recognise later, because that name is how you enter and export it.
- Create a Fedora container from the official image.
distrobox create --name fedora --image fedora:latest - Enter it. The first time, Distrobox runs its initialisation and drops you into a shell.
distrobox enter fedora - Use it like the distribution it is — install packages with its own manager.
sudo dnf install neovim - List and manage your containers from the host.
distrobox list distrobox stop fedora distrobox rm fedora
That is the core loop. Because the home directory is shared, everything you create inside the container is already on the host, and vice versa — there is no sync step. To keep an agent out of your real home, pass a dedicated one with --home ~/containers/arch-dev at creation time.

distrobox create y distrobox enter: un contenedor de otra distro listo en segundos, sin máquina virtual.Export apps to the host
The real magic is distrobox export. Run it inside the container and it writes a launcher into your host’s applications menu and $PATH, so a program installed in Fedora appears as if it belonged to your host.
- Export a graphical app from inside the container.
distrobox enter fedora distrobox export --app org.gnome.Boxes - Export a CLI binary so it runs directly from the host shell.
distrobox export --bin /usr/bin/neovim --name nvim-fedora - Undo an export later with the same command and
--delete.distrobox export --app org.gnome.Boxes --delete
Exported apps inherit your host’s icons, fonts and themes, so they do not look out of place. Keep the containers you rely on updated with distrobox-upgrade --all, which upgrades every container in one pass through its own package manager.

A practical example: a rolling toolchain on a stable host
Say you run Debian stable but need the newest ripgrep and a recent Neovim. Instead of chasing PPAs, keep the cutting edge quarantined in an Arch container.
distrobox create --name arch-tools --image archlinux:latest --home ~/containers/arch-tools
distrobox enter arch-tools
sudo pacman -Syu ripgrep neovim
distrobox export --bin /usr/bin/rg --name rg-arch
distrobox export --bin /usr/bin/nvim --name nvim-arch
Now rg-arch and nvim-arch run from your Debian shell while their packages come from Arch. Your stable system stays stable, and the noisy rolling toolchain lives in its own box that you can delete with a single command. The same pattern gives you Ubuntu builds on Fedora, or a throwaway environment for testing a package you do not trust yet.
What changes for you
Distrobox removes the main reason people keep a VM around: reaching a piece of software that your distribution does not package or packages too slowly. You get the app, the host stays clean, and there is no reboot in the loop.
- Stable-distro users: borrow the newest tools from Arch or Fedora without breaking your base.
- Developers: reproduce a distro-specific build environment without touching your host.
- The security-minded: remember this is integration, not isolation — do not treat a container as a sandbox.
Start with Podman, create one container for the package you have been missing, and export it. If it behaves like a native app — and it will — the VM you were keeping around for that one tool has just become unnecessary.
Sources
- Distrobox — official site: overview, quick start and command list.
- GitHub — 89luca89/distrobox: código, releases y notas.
- Distrobox — Usage: referencia de
create,enteryexport. - Fedora Magazine — Run Distrobox on Fedora Linux: recorrido práctico con Podman.
- Distrobox — Compatibility: motores soportados y distros anfitrionas.





Leave a Reply