We’ve all been there as soon as. Think about going by means of the difficulty of discovering an app, just for it to grow to be incompatible together with your OS. Linux distributions will be terribly diverse, and packages aren’t all the time suitable throughout distros.
Utilizing a digital machine would appear just like the logical selection then, however setting it up is a trouble. Enter Distrobox, a software that lets customers run nearly any Linux distribution inside a containerized atmosphere.
It’s been fairly a useful software, particularly when making an attempt to get .deb and .rpm format recordsdata to work.
Associated
These free Linux apps made leaving Home windows simpler than I anticipated
I believed I’d lose my workflow. As a substitute, I upgraded it.
How does it work?
Container magic
In a nutshell, Distrobox is a package of software program that lets customers run apps from completely different distributions inside a containerized atmosphere. Apps inside the container keep tight integration with the host system, with entry to its directories.
Apparently sufficient, Distrobox doesn’t truly handle containers by itself — you’ll want both Podman or Docker to realize that in conjunction.
In fact, the tight integration between the container and host makes it unattainable to fully isolate the Distrobox-ed program, however there may be some degree of separation.
Nonetheless, it’s a exceptional piece of software program that continues to be up to date to today. There seems to be a negligible efficiency penalty when operating apps in Distrobox, which makes it much more interesting.
Getting it up and operating
Distrobox help exists for main distros
On Arch Linux, Distrobox was surprisingly straightforward to configure and set up. I began by putting in each Distrobox and Podman packages utilizing the AUR, and went on to obtain an RPM file.
sudo pacman -S distrobox
sudo pacman -S podman
RPM recordsdata are Fedora-specific, so I needed to create a container for Fedora applications. This bit was additionally surprisingly straightforward to arrange, although I needed to wait some time for the entire course of to finish (together with downloading a Fedora picture). Make certain to hit Y/Enter to verify the obtain.
distrobox create –name fedora –image fedora:newest
With the Fedora container up and prepared, we are able to lastly enter the digital atmosphere and cd into our Downloads folder, which homes the particular RPM file we want. The preliminary setup took a while, so I needed to wait some time.
distrobox enter fedora
As soon as within the Downloads folder, all I needed to do was run “sudo dnf set up” adopted by the RPM file title to get it to launch. Sudo isn’t required right here since Distrobox offers customers password much less sudo entry inside the container. A couple of minutes later, I had a Fedora app up and operating on my Arch Linux system.
cd Downloads
sudo dnf set up ./your-app-name-here.rpm
This may pull in quite a few dependencies. Be sure you have sufficient free house!
Quirks and annoyances
I’d nonetheless take a local bundle over this any day of the week
Distrobox, regardless of being lifeless easy to make use of, runs fully on a command-line interface. This makes it far much less approachable than one thing with a GUI.
Enter BoxBuddy, a pleasant program that goals to make launching and managing Distrobox containers a lot simpler. As soon as put in (from both a local construct or a Flatpak), I used to be introduced with a menu that homes primary and superior capabilities, akin to restarting the container or deleting it outright.
In a means, BoxBuddy feels just like the lacking hyperlink that helps handle Distrobox so much higher.
Sadly, nothing ever trumps native packages. Having to leap by means of a number of hoops to get stuff working is lower than best, and Distrobox containers do take up much more house than you’d count on.
If in case you have a local app accessible, think about going for that first earlier than switching to Distrobox.
Nonetheless value a glance
Distrobox won’t be an ideal answer, nevertheless it does come actually shut. It’s much better than having to run a devoted digital machine for applications (and managing their file entry, which is an enormous headache in itself), and is performant sufficient that you’re unlikely to note the distinction.
In fact, your mileage will most definitely differ, relying on the app you’re making an attempt to run, however I’d say that Distrobox is definitely worth the hype. It lets me freely experiment with completely different Linux distribution packages with out concern of breaking my system, and earns a really strong advice.

