This commit is contained in:
parent
8ca457045a
commit
7931d64909
1 changed files with 64 additions and 0 deletions
64
content/blog/linux-distros.md
Normal file
64
content/blog/linux-distros.md
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
+++
|
||||
title = "Linux distro thoughts"
|
||||
date = 2026-11-21
|
||||
+++
|
||||
|
||||
My main Linux distribution is Arch Linux. It has been my choice throughout my Linux journey. However over the past year
|
||||
or so I have become interested in image based and store based Linux distros and seeing how they compare against
|
||||
traditional Linux distros.
|
||||
|
||||
## Traditional Linux distros
|
||||
|
||||
The most common type of distros are traditional distros such as [Arch Linux](https://archlinux.org/),
|
||||
[Fedora](https://fedoraproject.org/) and [Debian](https://www.debian.org/). They are defined by a mutable system that
|
||||
is modified in place. A package manager installs, upgrades and removes individual packages directly on the running root
|
||||
filesystem making the system the sum of every change made to it.
|
||||
|
||||
These can target different release models ranging from Debian with roughly a 2 year release model, Fedora with a 6
|
||||
month release model and Arch with a rolling release model.
|
||||
|
||||
I went with Arch Linux as I wanted the latest package updates more often than other options. The rolling release model
|
||||
has its challenges as you can get issues more often as well but in practice I found the benefits of rolling outweighed
|
||||
the occasional issue. Through the [Arch Wiki](https://wiki.archlinux.org/title/Main_page) I also learned a ton about
|
||||
how the system worked and how all the pieces fit together which helped me decide how I wanted my own system
|
||||
to work.
|
||||
|
||||
## Image based distros
|
||||
|
||||
Image based distros are where the system is built separately as an image and that image is then
|
||||
applied to a system. This makes a distinction between the system side and the user side which allows a more
|
||||
consistent desktop experience and reduces state issues building up in the system as the user adds, removes, updates
|
||||
software over time.
|
||||
|
||||
One example is [Bazzite](https://bazzite.gg/) which is an image based distro built on
|
||||
[Fedora Atomic](https://fedoraproject.org/atomic-desktops/) and focused on a batteries included gaming experience. The
|
||||
idea is you install it and it can prepare an update in the background which can be applied on reboot. You also have the
|
||||
option to roll back to a previous image should you run into any issues.
|
||||
|
||||
The trade off with this is that it requires different tools and approaches to get the same level of customisation
|
||||
requiring you to work with the image based model. This usually involves container tools such as
|
||||
[Docker](https://www.docker.com/) or [Distrobox](https://distrobox.it/) and package managers such as
|
||||
[Homebrew](https://brew.sh/) and [Flatpak](https://flatpak.org/).
|
||||
|
||||
## Store based distros
|
||||
|
||||
Store based distros are built around storing packages in a package store where each package has a unique identity based
|
||||
on all of its build inputs such as the source, version, compiler, build options and dependencies. This allows you to
|
||||
install different versions of the same package side by side. For example this avoids dependency issues where 2
|
||||
applications use different versions of the same library.
|
||||
|
||||
One example is [NixOS](https://nixos.org/) which is built on the [Nix](https://nix.dev/) package manager and its store.
|
||||
It is focused on declarative, reproducible systems where the whole system is described in configuration, with built in
|
||||
rollbacks. Every time you apply a new configuration it is stored as a generation and you can switch to and from any
|
||||
number of them.
|
||||
|
||||
The trade off currently is in the tooling and UX built around this model and dealing with edge cases that have
|
||||
not already been packaged or are not designed to easily work with this model. Currently
|
||||
[Nixpkgs](https://search.nixos.org/packages) has a very large number of packages so most of the time it is not an
|
||||
issue but it depends on your usecase.
|
||||
|
||||
## Conclusion
|
||||
|
||||
So what to use? I think the image based approach is the most user friendly place to start using Linux.
|
||||
If instead you want full control over the system then either Arch Linux for direct control with a traditional approach
|
||||
or NixOS for control through a store based approach.
|
||||
Loading…
Reference in a new issue