68
submitted 3 days ago by versionc@lemmy.world to c/linux@lemmy.ml

I've read that containers are preferred for development, but they aren't persistent and it doesn't seem like files such as /etc/fstab can be accessed through them when running distrobox (I enjoy editing such files using vim).

It's also a bit annoying having to enter a specific container to run something like btop.

Are you supposed to layer them with rpm-ostree?

you are viewing a single comment's thread
view the rest of the comments
[-] MalReynolds@slrpnk.net 4 points 3 days ago* (last edited 3 days ago)

Layer things that genuinely need (often in boot sequence) low level access like filesystems (e.g. I have mergerfs+snapraid on my desktop). If you're OK with a longer rpm-ostree update, you can layer some self contained things like btop with little risk, perhaps also your preferred shell. Also anything you want in TTYs if something breaks.

vim edit /etc/fstab works fine from within a distrobox, you just need to do sudo vim /run/host/etc/fstab or distrobox-export the binary to your main shell, which means that the container will start, but you don't have to enter it. If you fire a terminal profile into the container by default at login you won't need to start the container when you use an exported command.

Embrace the distrobox experience for development and generally mucking around, use Arch's AUR, archive entire environments, there's lots going for it.

Linux brew is coming along nicely, use it first if there's a formula, but I've been fine with flatpak, distrobox and layers (in that order) for a couple of years now.

this post was submitted on 22 Apr 2026
68 points (97.2% liked)

Linux

64844 readers
730 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS