Somewhere between the installer finishing and your first real task, the same question arrives: where do I install this? On Fedora Atomic the answer cannot be "on the host" — the host is a versioned image, and there is no dnf on it to ask. In our previous article we compared the two tools that answer that question: Toolbx, which ships with Fedora, and Distrobox, which does not. We went through the benchmarks, the feature arguments, and the philosophies behind each — a predictable, tested toolshed versus a faithful second computer.
This article is the practical follow-up. We are going to use Toolbx — the one already on your machine — and turn it into a working environment: create a box, install tools into it, run one-off commands without opening a shell, keep more than one box around, and clean up when a box has served its purpose. No installs, no custom images, and no theory beyond what makes the commands make sense.
A note on scope: this tutorial assumes a Fedora Atomic Desktop (Silverblue, Kinoite, Sway Atomic, Budgie Atomic, or a derivative) with Toolbx already installed — it ships with the edition, so there is nothing to install here. We do not cover installing Toolbx on other distributions or other host setups; the project's own installation guide covers those. Commands and options were checked against the upstream toolbox(1), toolbox-create(1), toolbox-enter(1), toolbox-run(1) and toolbox-list(1) man pages as of November 2026 (Fedora 45, Toolbx 0.3). One naming detail up front: the project is Toolbx — capital T, no "o" — but the binary and the RPM are still toolbox, which is what you will actually type.
Objective of This Tutorial
By the end of this tutorial you should be able to:
- Create your default Toolbx container and enter it.
- Install command-line tools inside the box without adding a single package to the host image.
- Run a single command in a box with
toolbox runinstead of opening a shell. - Create, name, and switch between several boxes — for example, one for each Fedora release you test against.
- Inspect, remove, and recreate boxes confidently, and know when a box is meant to be disposable.
What this tutorial deliberately does not cover: installing Toolbx on distributions that do not ship it, building custom Toolbx images, exporting desktop applications to the host (Toolbx considers that Flatpak's job), or using a toolbox as a security boundary (it explicitly is not one). If you want the reasoning behind those last two points, they are discussed in the comparison article linked above.
Part 1: The Mental Model
A Toolbx container is an OCI container created by rootless Podman from a purpose-built image — on Fedora, fedora-toolbox:45. It is a toolbox, not a virtual machine and not a sandbox. Three facts are enough to make every command below intuitive:
The box has its own /usr, but shares your home. Packages you install live in the container's filesystem; the files in your home directory are the same files you see on the host, mounted at the same path. Clone a repository on the host and it is immediately available inside the box. Edit a dotfile inside the box and you have edited it on the host. That seamlessness is the feature — and the main gotcha later on.
The host is visible at /run/host. Need to read the real /etc/os-release, inspect a unit file, or look at logs? The host filesystem is mounted inside the box. The systemd journal, D-Bus, Wayland and X11 sockets, the SSH agent, CA certificates, USB devices and /dev are wired in too, which is why a toolbox can be used to troubleshoot the machine it lives on.
The image is prepared; the container is mutable and disposable. Toolbx uses images that were built for it, and its toolbox init-container entry point applies user and configuration details at runtime. You do not maintain the box the way you maintain a server. If it gets messy, you remove it and make a new one. The host image never changes.
Inside, the prompt changes to ⬢[user@toolbox ~]$ — a small but useful reminder that dnf now refers to the box's package manager, and that anything you install affects only this container. sudo works from the box's user account; Toolbx grants it during initialization.
Part 2: Your First Box
Create the default box:
$ toolbox create
Image required to create toolbox container.
Download registry.fedoraproject.org/fedora-toolbox:45 (390.2MB)? [y/N]: y
Created container: fedora-toolbox-45
Enter with: toolbox enter
That is the whole setup. The image is pulled once; subsequent boxes from the same image reuse it. If you would rather not answer the download prompt, the yes flag is a global option and goes before the command: toolbox -y create.
Confirm what exists, then enter:
$ toolbox list
IMAGE ID IMAGE NAME CREATED
<id> registry.fedoraproject.org/fedora-toolbox:45 ...
CONTAINER ID CONTAINER NAME CREATED STATUS IMAGE NAME
<id> fedora-toolbox-45 ... ... registry.fedoraproject.org/fedora-toolbox:45
$ toolbox enter
⬢[user@toolbox ~]$
You are now in a normal Fedora userland with a working package manager. Install whatever CLI tools you came for:
⬢[user@toolbox ~]$ sudo dnf install ansible gcc gdb nmap
⬢[user@toolbox ~]$ ansible --version
⬢[user@toolbox ~]$ cat /run/host/etc/os-release
That last command reads the host's release file from inside the box. It is a quick way to prove to yourself that the two systems are separate but connected.
Leave with exit. Your shell returns to the host, and your packages stay in the box.
⬢[user@toolbox ~]$ exit
$
Part 3: The Commands You'll Use Daily
Enter or just run?
Use toolbox enter when you want an interactive session. With no arguments it selects the default box for the host release; if there is only one box, it uses that one; if there are none, it offers to create the default. You can also name the box directly:
$ toolbox enter
$ toolbox enter fedora-toolbox-45
Use toolbox run for a single command. It starts the container and executes the command without giving you a prompt, which makes it the right building block for scripts and shell aliases:
$ toolbox run ansible --version
$ toolbox run gcc --version
toolbox run is roughly podman start followed by podman exec — the container machinery stays invisible. Its exit codes are predictable too: 126 means the command could not be invoked, 127 means it was not found (or the working directory does not exist), and otherwise you get the command's own exit status. That is useful in a script:
$ toolbox run false; echo $?
1
$ toolbox run nonexistent-command; echo $?
127
Pick the right box
When more than one box exists, selection differs by command, and this trips people up:
toolbox enter <name>— the container name is a positional argument.toolbox run -c <name> <command>— the container name goes with--container/-c.
$ toolbox enter devbox
$ toolbox run -c devbox gcc --version
There are also --distro and --release selectors on both commands, but for daily use an explicit name is clearer than a selector that depends on the host release.
Make it frictionless
A couple of aliases turn "enter a box and run a tool" into something you barely notice:
alias tb='toolbox run'
alias tbdev='toolbox run -c devbox'
Then tb ansible --version or tbdev gdb ./program works from any host shell, with nothing installed on the host.
Two desktop integrations are worth knowing about. Ptyxis, the terminal that ships with recent Fedora Atomic desktops, can open a terminal directly in a chosen Toolbx container — no toolbox enter needed. Builder, GNOME's IDE, can build and run projects against the SDKs inside a specific box. Both use the same containers you created on the command line; nothing extra is required.
Part 4: More Than One Box
Boxes are cheap, so use them as scopes. A compiler toolchain for one project, an older userland for reproducing a bug, a scratch box for experiments that may go wrong — each gets its own container, and none of them contaminates the host.
Create a named box by passing the name as a positional argument:
$ toolbox create devbox
Create one for a different release with --distro and --release:
$ toolbox create --distro fedora --release f44 legacy44
$ toolbox enter legacy44
⬢[user@toolbox ~]$ cat /etc/fedora-release
The officially supported fedora release values are a number or an f-prefixed number (45 or f45); other supported distro names are arch (as latest or rolling), rhel (as major.minor, e.g. 8.5) and ubuntu (as YY.MM). --distro must be paired with --release unless the distro matches the host. Custom images are possible with --image, but that is build-time territory and outside this tutorial.
When you do not give a name, Toolbx derives one from the image: fedora-toolbox:45 becomes fedora-toolbox-45, with a hyphen in place of the colon. Give boxes short, predictable names and prefix them consistently — especially if you also run Distrobox, since toolbox list can show containers that Distrobox built from Toolbx-family images. A simple tbx- prefix for Toolbx boxes and dbx- for Distrobox boxes keeps audits unambiguous.
A note for after a system rebase: when the host moves to Fedora 46, the default box name becomes fedora-toolbox-46. Create a new box for the new release, migrate whatever you still need, and remove the old one when you are done. Your package set does not travel with the host upgrade — that separation is the point.
Part 5: Keeping Boxes Under Control
Updates happen inside the box, with the box's own package manager:
$ toolbox enter
⬢[user@toolbox ~]$ sudo dnf update
The host is not involved, and no reboot is required.
Older tutorials mention toolbox start, toolbox stop and toolbox reset. Those are not part of the current command set — toolbox help lists create, enter, help, init-container, list, rm, rmi and run. The supported way to return a box to a clean state is to remove and recreate it:
$ toolbox list --containers
$ toolbox rm devbox
$ toolbox create devbox
Removing a box discards everything installed in its /usr; files in your home directory survive because they were never the box's to begin with. This is why the disposable mindset matters: a box that has accumulated half-configured tools is cheaper to replace than to repair.
The same pattern applies when an updated fedora-toolbox image appears. toolbox create will not replace an existing container with the same name, so remove the old one first if you want the updated image.
For a wider view, go straight to Podman. Toolbx containers are ordinary OCI containers with a recognisable label, so the standard tools work:
$ podman ps -a
$ podman images
$ toolbox list --images
toolbox rmi <image> removes a cached image you no longer need. Between that and toolbox rm, you have full control over disk usage without leaving the Toolbx workflow.
Part 6: Three Recipes
A compiler toolchain. Create a named box, install the build tools, and work on sources in your home directory:
$ toolbox create buildbox
$ toolbox enter buildbox
⬢[user@toolbox ~]$ sudo dnf install gcc gdb make
⬢[user@toolbox ~]$ cd ~/projects/example && make
When the project is done, toolbox rm buildbox removes the toolchain without touching the project files.
Troubleshooting the host without installing anything. Because the journal and /run/host are mounted, a box is a good place to keep diagnostic tools you do not want layered onto the host:
$ toolbox enter
⬢[user@toolbox ~]$ sudo dnf install nmap
⬢[user@toolbox ~]$ journalctl -n 50
⬢[user@toolbox ~]$ cat /run/host/etc/os-release
For operations that genuinely need host-level privilege — a TCP SYN scan with nmap -sS, for example — the upstream documentation shows running sudo toolbox enter, which gives you a root box with the same host integration. That is a deliberate troubleshooting tool, not a default working mode.
A scratch box. For anything you would rather not reason about too carefully:
$ toolbox create scratch
$ toolbox enter scratch
... install, break, experiment ...
$ exit
$ toolbox rm scratch
Nothing you did is on the host. That is the entire safety model: the box is where the mess happens.
Part 7: Gotchas Worth Knowing Early
The home directory is shared, including dotfiles. Your ~/.config, shell rc files and editor settings are the host's files. Two boxes with conflicting toolchains can coexist, but their dotfiles cannot — this is exactly the gap Distrobox's separate-home option fills, as noted in the earlier comparison. If configuration clashes become a real problem, keep that box's tooling narrowly scoped rather than trying to isolate it inside Toolbx.
GUI applications are not exported. A graphical app installed in a box does not appear in the host's application launcher. That is a stated Toolbx non-goal: Flatpak is the answer for desktop applications, and Toolbx complements it. IDEs with integrated Toolbx support are the exception, because they talk to the container themselves.
This is not a sandbox. Toolbx makes no security promise beyond the usual command-line environment on the host. The container is heavily integrated with your home, sockets and devices; treat it as a shell you own, not a perimeter. If you need isolation, use Flatpak for applications or a VM for workloads.
Interactive sudo works; assume-nothing sudo may not. The box's sudo setup is designed for interactive use. Scripts that depend on sudo -n inside a Toolbx box are asking for trouble.
Watch the working directory with toolbox run. The command runs in the box, where paths may not mean what they mean on the host. An exit code of 127 can indicate that the working directory does not exist in the container, not just a missing command.
Command Cheat Sheet
| Task | Command |
|---|---|
| Create the default box | toolbox create (or toolbox -y create) |
| Create a named box | toolbox create <name> |
| Create for another release | toolbox create --distro fedora --release f44 <name> |
| List boxes and images | toolbox list |
| List boxes only | toolbox list --containers |
| Enter the default/only box | toolbox enter |
| Enter a named box | toolbox enter <name> |
| Run one command | toolbox run <command> |
| Run in a named box | toolbox run -c <name> <command> |
| Install packages (inside) | sudo dnf install <package> |
| Update packages (inside) | sudo dnf update |
| Read the host from inside | cat /run/host/etc/os-release |
| Remove a box | toolbox rm <name> |
| Remove a cached image | toolbox rmi <image> |
| Inspect with Podman | podman ps -a, podman images |
| See all commands | toolbox help |
Further reading:
- Toolbx home — project overview and the current documentation links
- Toolbx documentation — the full command reference, including
toolbox.conf(5) - Common use cases — development, troubleshooting, Builder and Ptyxis integration
- Distro support — supported distributions and release formats
- containers/toolbox on GitHub — source, man pages and issue tracker
- Toolbx vs. Distrobox: Where the Package Manager Lives on Fedora Atomic — the comparison this tutorial follows up on
Researched November 2026 from the upstream Toolbx documentation and man pages. Commands were checked against the Toolbx 0.3 command set; Fedora 45 is the current release at time of writing. The project renames itself from "Toolbox" to "Toolbx" incrementally, so the binary, RPM and some documentation still use the old spelling — verify against toolbox help and the upstream docs if your version differs.